-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 877 Bytes
/
Copy pathrelease.yml
File metadata and controls
44 lines (37 loc) · 877 Bytes
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
38
39
40
41
42
43
44
name: Release
on:
push:
branches: [ main ]
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: 24
cache: npm
- run: npm ci
- run: npm run bundle
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HUSKY: "0"
run: |
set -o pipefail
npx semantic-release 2>&1 | tee /tmp/sr.log
- name: Publish to npm
if: success()
run: |
if grep -q "The next release version is" /tmp/sr.log; then
npm publish --provenance --access public
fi