-
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (30 loc) · 946 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
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: ./.github/actions/prepare
- run: git config user.name "${GITHUB_ACTOR}"
- run: git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
- env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
run: |
if git log --format=%B -n 1 | grep -q 'release v[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}' && git log --format="%an <%ae>" -n 1 | grep -q 'ryota-murakami <dojce1048@gmail.com>'; then
pnpm release-it --no-increment --verbose
fi
name: Release
on:
push:
branches:
- main
permissions:
contents: write
id-token: write