-
Notifications
You must be signed in to change notification settings - Fork 4
45 lines (45 loc) · 1.19 KB
/
release-actions.yml
File metadata and controls
45 lines (45 loc) · 1.19 KB
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
name: Release Action
on:
push:
branches:
- main
paths:
- '.changeset/**'
- 'packages/**'
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: Use Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: '16.x'
token: ${{ secrets.WORKFLOW_TOKEN }}
fetch-depth: '0'
- name: Install dependencies
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: 'false'
run: yarn install
- name: Configure npm
run: |
cat << EOF > "$HOME/.npmrc"
email=jdesignsystem@gmail.com
//registry.npmjs.org/:_authToken=$NPM_TOKEN
EOF
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Check dependencies
run: yarn dependency-cruiser packages
- name: Build packages
run: yarn build
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: yarn release
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}