-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (47 loc) · 1.43 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
58
name: Main Workflow
on:
push:
paths:
- "packages/**"
- "tools/**"
branches:
- main
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Get Yarn cache path
id: yarn-cache-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Load Yarn cache
uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install --frozen-lockfile --ignore-engines
- name: Setup Git user (for changelog step)
run: |
git config --global user.name "Eike Foken"
git config --global user.email "[email protected]"
- name: Configure npm
run: npm set "//registry.npmjs.org/:_authToken=$NPM_TOKEN"
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Build packages
run: yarn build
# - name: Version and publish
# run: |
# git config user.name "${{ github.actor }}"
# yarn lerna version --conventional-commits --no-changelog --no-push --yes