Skip to content

Commit

Permalink
Merge pull request #96 from regulaforensics/SP-13897/Add_prerelease_t…
Browse files Browse the repository at this point in the history
…o_publish

SP-13897: Add prerelease to publish job
  • Loading branch information
KirylKovaliov authored Mar 1, 2024
2 parents 25b27d0 + eea93b9 commit 16ddb22
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,18 @@ jobs:
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- run: npm --no-git-tag-version --allow-same-version version ${{ github.event.release.name }}
- run: npm install
- run: npm run build
- run: npm publish --access public
- name: Release latest package
run: |
npm --no-git-tag-version --allow-same-version version ${{ github.event.release.name }}
npm install
npm run build
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}
- name: Release next package
run: |
npm version --no-git-tag-version --allow-same-version ${{ github.event.release.name }}-dev
npm version prerelease --no-git-tag-version --allow-same-version --preid beta
npm publish --tag next
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}

0 comments on commit 16ddb22

Please sign in to comment.