-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (31 loc) · 858 Bytes
/
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
name: "🚀 release"
on:
push:
branches:
- main
jobs:
release:
name: 🚀 release
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- name: 📚 checkout
uses: actions/checkout@v2
- name: 🟢 node -v ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org
- uses: borales/actions-yarn@v3.0.0
with:
cmd: install # will run `yarn install` command
- uses: borales/actions-yarn@v3.0.0
with:
cmd: build # will run `yarn build` command
- name: 🚀 publish
run: npm publish --access public
working-directory: ./lib
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}