-
-
Notifications
You must be signed in to change notification settings - Fork 496
37 lines (28 loc) · 838 Bytes
/
publish.yml
File metadata and controls
37 lines (28 loc) · 838 Bytes
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
name: Publish
on:
release:
types: [published]
permissions:
contents: read
id-token: write
jobs:
publish:
name: Publish to npm
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Use Node.js 22
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: "22"
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run tests
run: yarn start test
- name: Build
run: yarn start build
- name: Publish
run: npm publish --provenance ${{ github.event.release.prerelease && '--tag next' || '' }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}