Skip to content
Open
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
25 changes: 25 additions & 0 deletions .github/workflows/assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: "Assets"
on:
workflow_dispatch:

release:
types: ["published"]

push:
branches: ["master"]

Expand Down Expand Up @@ -50,3 +53,25 @@ jobs:
- run: npm publish --provenance --access public --tag master
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

publish-release:
runs-on: ubuntu-latest
needs: [build]
if: github.event_name == 'release'
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: dist-files
path: dist/
- uses: actions/setup-node@v4
with:
node-version: '22.x'
registry-url: 'https://registry.npmjs.org'
- run: npm version "${GITHUB_REF_NAME#v}" --no-git-tag-version --allow-same-version
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading