Skip to content

Commit 21e711b

Browse files
committed
chore: Move workflow to semantic release
1 parent f705a84 commit 21e711b

1 file changed

Lines changed: 29 additions & 13 deletions

File tree

.github/workflows/deployment.yml

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,38 @@
1-
name: Publish to npm
1+
name: Create release and publish to npm
22
on:
33
push:
4-
tags:
5-
- "v[0-9]+.[0-9]+.[0-9]+"
4+
branches:
5+
- master
6+
7+
permissions:
8+
contents: write
9+
pages: write
10+
id-token: write
11+
612
jobs:
7-
build:
13+
release:
814
runs-on: ubuntu-latest
915
steps:
10-
- uses: actions/checkout@v4
11-
- uses: actions/setup-node@v4
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Node.js
20+
uses: actions/setup-node@v4
1221
with:
13-
node-version: 18
14-
registry-url: "https://registry.npmjs.org"
22+
node-version: 22
23+
registry-url: "https://registry.npmjs.org/"
24+
1525
- uses: pnpm/action-setup@v4
16-
with:
17-
version: 9.4.0
18-
- run: pnpm install --frozen-lockfile
19-
- run: pnpm run build
20-
- run: pnpm publish --no-git-checks
26+
27+
- name: Install dependencies
28+
run: pnpm install
29+
30+
- name: Build the project
31+
run: pnpm run build
32+
33+
- name: Semantic Release 🚀
34+
id: semantic
35+
run: npx semantic-release --branches master
2136
env:
37+
GH_TOKEN: ${{ secrets.OPENINC_SEMANTIC_RELEASE }}
2238
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_ORG_OPENINC }}

0 commit comments

Comments
 (0)