Skip to content

Commit b4204f3

Browse files
author
rocketraccoon
committed
feat(testing-library): add release workflow
1 parent e5080a1 commit b4204f3

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/release.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: release-please
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
10+
cancel-in-progress: true
11+
12+
permissions:
13+
contents: write
14+
pull-requests: write
15+
16+
jobs:
17+
release-please:
18+
runs-on: self-hosted-arc
19+
outputs:
20+
release_created: ${{ steps.release.outputs.release_created }}
21+
steps:
22+
- uses: googleapis/release-please-action@v4
23+
id: release
24+
with:
25+
token: ${{ secrets.GH_ACCESS_TOKEN }}
26+
release-type: node
27+
config-file: release-please-config.json
28+
29+
publish:
30+
needs: release-please
31+
if: ${{ needs.release-please.outputs.release_created }}
32+
runs-on: self-hosted-arc
33+
steps:
34+
- uses: actions/checkout@v4
35+
36+
- uses: actions/setup-node@v4
37+
with:
38+
node-version: "22"
39+
registry-url: "https://registry.npmjs.org"
40+
cache: "npm"
41+
42+
- run: npm ci
43+
44+
- run: npm run build
45+
46+
- run: npm publish --access public
47+
env:
48+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)