-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (46 loc) · 1.41 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Release
on:
workflow_dispatch:
push:
branches: [master]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.BOT_ACCESS_TOKEN }}
- name: git config user
run: |
git config --global user.name mrm-dev
git config --global user.email [email protected]
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: "18"
- name: Setup yarn
run: |
corepack enable
corepack prepare [email protected] --activate
- name: Install dependencies
run: yarn
- name: Release
run: |
yarn release
git push --follow-tags origin master --no-verify
yarn build
- name: Set version tags
run: |
echo "CORE_LAST_TAG=core@v$(./package_version.sh --path=./packages/core)" >> $GITHUB_ENV
echo "LINTER_LAST_TAG=linter@v$(./package_version.sh --path=./packages/linter)" >> $GITHUB_ENV
- name: Publish Core
uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_TOKEN }}
package: "./packages/core/package.json"
- name: Publish Linter
uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_TOKEN }}
package: "./packages/linter/package.json"