-
Notifications
You must be signed in to change notification settings - Fork 153
35 lines (29 loc) · 1.11 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
name: release
on:
workflow_dispatch:
jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: release/arrowsquid
fetch-depth: 0
- name: Configure git user
run: |
git config --global user.name 'github-actions'
git config --global user.email '[email protected]'
- name: Write npm credentials
run: |
echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" >> common/config/rush/.npmrc
echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" >> common/config/rush/.npmrc-publish
cd common/config/rush && npm whoami
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- name: Install dependencies
run: node common/scripts/install-run-rush.js install
- name: Build project
run: node common/scripts/install-run-rush.js build
- name: Publish npm packages
run: node common/scripts/install-run-rush.js publish --include-all --version-policy npm --target-branch release/arrowsquid --publish --tag latest