Skip to content
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
9 changes: 5 additions & 4 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,24 @@ on:
jobs:
deploy:
if: github.event.pull_request.merged
permissions:
id-token: write # Required for OIDC
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: release
- run: npm ci
- run: npm run build
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
- run: npm publish

updateDocs:
if: github.event.pull_request.merged
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
pages: write # to deploy to Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
Loading