-
Notifications
You must be signed in to change notification settings - Fork 64
46 lines (40 loc) · 1.43 KB
/
Copy pathpublish-npm.yml
File metadata and controls
46 lines (40 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Create a release
on: workflow_dispatch
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: false
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write # to push tags and create the GitHub release
issues: write # to comment on released issues
pull-requests: write # to comment on released pull requests
id-token: write # to mint the OIDC token for npm provenance / trusted publishing
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # semantic-release needs full history and tags
- name: Setup
uses: ./.github/actions/setup
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Use Node with npm 11+
uses: actions/setup-node@v4
with:
node-version: "24"
registry-url: "https://registry.npmjs.org"
- name: Build packages
run: yarn turbo run build --filter='./packages/*'
- name: Release
working-directory: packages/webgpu
run: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Trusted publishing authenticates via the OIDC id-token, so no npm
# token is needed. These are set empty so semantic-release-yarn's
# verifyConditions step does not trip on a missing token.
YARN_NPM_AUTH_TOKEN: ''
NPM_TOKEN: ''
NPM_CONFIG_PROVENANCE: true