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
16 changes: 8 additions & 8 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ on:
- major
concurrency: release
permissions:
contents: write
id-token: write # Allow npm to authenticate as a trusted publisher
contents: write # Allow creating a release
jobs:
release:
name: "Release & Publish"
Expand Down Expand Up @@ -44,16 +45,15 @@ jobs:
run: yarn build

- name: 🚀 Publish to npm
id: npm-publish
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
# We use npm since Yarn Classic doesn't support trusted publishing
run: |
npm publish --provenance --ignore-scripts
echo "VERSION=$(jq '.version' --raw-output package.json)" >> "$GITHUB_ENV"

- name: 🧬 Create release
uses: softprops/action-gh-release@v2
with:
tag_name: v${{ steps.npm-publish.outputs.version }}
body: ${{ steps.npm-publish.outputs.version }} Release
tag_name: v${{ env.VERSION }}
body: ${{ env.VERSION }} Release
draft: false
prerelease: false