-
Notifications
You must be signed in to change notification settings - Fork 4
37 lines (33 loc) · 931 Bytes
/
publish.yml
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:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
publish:
runs-on: 'ubuntu-latest'
# provenance check
# permission for github-action
# permissions:
# id-token: write
# actions: write
permissions: write-all
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v4
# with:
# version: 8
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
- run: pnpm install --no-frozen-lockfile
- name: Create Release Pull Request or Publish
id: changesets
uses: changesets/action@v1
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
with:
publish: pnpm release