Skip to content

Commit

Permalink
fix: authts#1316 use npm distribution tags for upcoming releases
Browse files Browse the repository at this point in the history
  • Loading branch information
pamapa authored and Chris Keogh committed Apr 3, 2024
1 parent 950029c commit 2656e4c
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,23 @@ jobs:
cache: npm
registry-url: https://registry.npmjs.org

- run: npm ci
- run: npm publish
- name: Install dependencies
run: npm ci

- name: Publish package release
if: "!github.event.release.prerelease"
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish package pre-release
if: "github.event.release.prerelease"
run: npm publish --tag next
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- run: npm run typedoc
- name: Generate API documentation
run: npm run typedoc

- name: Deploy pages
uses: peaceiris/actions-gh-pages@v3
Expand Down

0 comments on commit 2656e4c

Please sign in to comment.