From 08dc72c1a3b0654253e3a1cc3f8ed844e6900c6d Mon Sep 17 00:00:00 2001 From: Jan Hoffmann Date: Tue, 11 Jun 2024 16:45:51 +0200 Subject: [PATCH] fix: small fixes --- .github/workflows/publish-casper-client-sdk.yml | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/.github/workflows/publish-casper-client-sdk.yml b/.github/workflows/publish-casper-client-sdk.yml index 6fd54dc2..7830eee5 100644 --- a/.github/workflows/publish-casper-client-sdk.yml +++ b/.github/workflows/publish-casper-client-sdk.yml @@ -21,8 +21,8 @@ jobs: - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b #v3.0.2 - name: Set release tag run: | - if [ ${{ github.event.release.target_commitish }} == 'condor-rc' ]; then - echo "release_tag=condor-rc" >> $GITHUB_ENV + if [ ${{ github.event.release.target_commitish }} == 'condor' ]; then + echo "release_tag=condor" >> $GITHUB_ENV else echo "release_tag=latest" >> $GITHUB_ENV fi @@ -32,18 +32,8 @@ jobs: node-version: ${{ matrix.node-version }} registry-url: 'https://registry.npmjs.org' - run: npm install - - uses: JS-DevTools/npm-publish@v1 + - uses: JS-DevTools/npm-publish@v3 with: token: ${{ secrets.NPM_TOKEN }} tag: ${{ env.release_tag }} access: "public" - check-version: true - - name: Get latest release version number - id: get_version - uses: battila7/get-version-action@d97fbc34ceb64d1f5d95f4dfd6dce33521ccccf5 #v2.3.0 - - run: cp dist/lib.web.js casper-js-sdk.v${{ steps.get_version.outputs.version }}.js - - uses: meeDamian/github-release@7ae19492500104f636b3fee4d8103af0fed36c8e #v2.0.3 - with: - token: ${{ secrets.GITHUB_TOKEN }} - files: casper-js-sdk.v${{ steps.get_version.outputs.version }}.js - allow_override: true