Skip to content

Commit

Permalink
Publish prereleases to "next" tag
Browse files Browse the repository at this point in the history
  • Loading branch information
MattiasBuelens committed Jan 5, 2024
1 parent 18c197b commit 27e5850
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,23 @@ jobs:
with:
ref: ${{ github.event.release.target_commitish }}
- name: Validate and extract release information
id: release
uses: manovotny/[email protected]
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
always-auth: true
cache: 'npm'
- run: npm ci
- run: npm publish --provenance
- name: Publish latest version
if: steps.release.outputs.tag == ''
run: npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish next version
if: steps.release.outputs.tag != ''
run: npm publish --provenance --tag next
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 27e5850

Please sign in to comment.