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
13 changes: 12 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

permissions:
id-token: write # Required for OIDC
contents: read
contents: write

jobs:
publish-npm:
Expand All @@ -23,5 +23,16 @@ jobs:
- run: npm install -g npm@latest
- run: npm ci --ignore-scripts --no-fund --no-audit
- run: npm test
- name: Bump version
run: |
VERSION=${GITHUB_REF_NAME#v}
npm version $VERSION --no-git-tag-version
- name: Commit and push version bump
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add package.json package-lock.json
git commit -m "chore: bump version to ${GITHUB_REF_NAME#v}"
git push origin HEAD:main
- run: npm run build
- run: npm publish --access public
Loading