-
-
Notifications
You must be signed in to change notification settings - Fork 25
38 lines (38 loc) · 1.04 KB
/
release.yml
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
"on":
push:
branches:
- master
name: release
jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: npm
- run: npm ci
- run: npm run build
- run: rm .gitignore
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: |
git config user.name github-actions
git config user.email [email protected]
git add .gitignore dist/
git commit -m "build"
- run: >-
git push -f
https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
HEAD:refs/heads/v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: >-
git push -f
https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
HEAD:refs/heads/v1.x
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}