Skip to content

Commit a48dd35

Browse files
committed
feat: add publish workflow
1 parent d112c00 commit a48dd35

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

.github/workflows/publish.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
1-
# GitHub Actions example
1+
name: Publish
2+
on:
3+
push:
4+
tags:
5+
- "v*"
6+
27
jobs:
38
release:
49
runs-on: ubuntu-latest
510
permissions:
6-
contents: write # For git operations
7-
id-token: write # < REQUIRED FOR OIDC
11+
contents: write
12+
id-token: write
813

914
steps:
10-
- uses: actions/checkout
11-
- uses: actions/setup-node
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-node@v4
1217
with:
1318
node-version: "lts/*"
1419
registry-url: "https://registry.npmjs.org"
1520

16-
# OIDC requires npm v11.5.1 or later
17-
# Node.js v20 comes with v10.8, so we need to update it:
1821
- run: npm install -g npm@latest
1922
- run: npm ci
2023
- run: npx release-it --ci

0 commit comments

Comments
 (0)