Skip to content

Commit

Permalink
fix: small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hoffmannjan committed Jun 11, 2024
1 parent 89b9b83 commit 08dc72c
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/publish-casper-client-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 08dc72c

Please sign in to comment.