Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SP-13897: Add prerelease to publish job #96

Merged
merged 1 commit into from
Mar 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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}}
Loading