-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 1015 Bytes
/
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
39
40
name: slim/release
on:
push:
branches:
- master
jobs:
release:
name: "Bump version and cut a release"
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/[email protected]
with:
ref: master
persist-credentials: false
- name: Setup node
uses: actions/[email protected]
with:
node-version: 20.8.1
- name: Install dependencies
run: yarn
- name: Build
run: yarn build
- name: Zip build
run: zip -r build.zip build
- name: Bump version and cut a release
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
GIT_AUTHOR_NAME: ${{ vars.RELEASE_GIT_AUTHOR_NAME }}
GIT_AUTHOR_EMAIL: ${{ vars.RELEASE_GIT_AUTHOR_EMAIL }}
GIT_COMMITTER_NAME: ${{ vars.RELEASE_GIT_COMMITTER_NAME }}
GIT_COMMITTER_EMAIL: ${{ vars.RELEASE_GIT_COMMITTER_EMAIL }}
run: npx semantic-release --branches master