-
Notifications
You must be signed in to change notification settings - Fork 5
53 lines (42 loc) · 1.11 KB
/
publish.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
name: Publish to npm
on:
push:
branches:
- master
jobs:
build-and-publish:
runs-on: ubuntu-latest
env:
NPM_DIFUKS_TOKEN: ${{ secrets.NPM_DIFUKS_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
token: ${{ secrets.PERSONAL_TOKEN }}
fetch-depth: 0
- name: Cache yarn
uses: actions/cache@v3
with:
path: |
.yarn/cache
.yarn/install-state.gz
key: ${{ runner.os }}-yarn-${{ github.sha }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install modules
run: yarn install
- name: Build libs
run: yarn build
- name: Eslint
run: yarn lint
- name: Check packages versions
run: yarn version check
- name: Apply versions
run: yarn version apply
- name: Publish package
run: yarn npm publish --tolerate-republish
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: |
ci: Release packages
[skip ci]