Skip to content

Commit ed9ce32

Browse files
committed
add release workflow
1 parent 5fdab30 commit ed9ce32

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: read
10+
id-token: write # Required for OIDC
11+
12+
jobs:
13+
release:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: "20"
21+
registry-url: "https://registry.npmjs.org"
22+
cache: yarn
23+
24+
- name: Update npm to latest
25+
run: npm install -g npm@latest
26+
27+
- name: Install dependencies
28+
run: yarn install
29+
30+
- name: Create Release Pull Request or Publish
31+
uses: changesets/action@v1 # Must use latest version!
32+
with:
33+
publish: yarn release
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Keep this
36+
NPM_TOKEN: "" # Forces OIDC authentication

0 commit comments

Comments
 (0)