-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (45 loc) · 1.26 KB
/
publish-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
name: publish-release
on:
push:
branches:
- master
workflow_dispatch:
jobs:
publish-release:
name: Running release
if:
"contains(toJSON(github.event.commits.*.message), 'chore(release):')"
runs-on: ubuntu-latest
strategy:
matrix:
node: [14]
env:
CI: true
steps:
- name: 🛒 Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.GH_TOKEN }}
- name: 🚀 Publish package to GitHub Packages
uses: actions/setup-node@v3
with:
node-version: '14.x'
registry-url: 'https://npm.pkg.github.com'
# Defaults to the user or organization that owns the workflow file
scope: '@trixtateam'
- run: yarn
- run: yarn publish:lib
env:
NODE_AUTH_TOKEN: ${{ secrets.GH_TOKEN }}
- name: 🚀 Publish package to NPM Registry
uses: actions/setup-node@v3
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
# Defaults to the user or organization that owns the workflow file
scope: '@trixtateam'
- run: yarn
- run: yarn publish:lib
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}