-
Notifications
You must be signed in to change notification settings - Fork 19
48 lines (41 loc) · 1.29 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
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Release
on:
push:
branches:
- master
- beta
jobs:
release:
name: Build & Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GH_TOKEN }}
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 19
cache: 'npm'
- name: Configure CI Git User
run: |
git config --global user.name 'TheUnderScorer'
git config --global user.email '[email protected]'
git remote set-url origin https://TheUnderScorer:[email protected]/TheUnderScorer/nx-semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Install npm dependencies
run: npm ci
- name: Link package
run: npm run build:skip-cache && npm link dist/packages/nx-semantic-release && npm ls @theunderscorer/nx-semantic-release
- name: Print versions
run: |
echo "Node.js version: $(node -v)"
echo "NPM version: $(npm -v)"
echo "NX version: $(npx nx --version)"
- name: Release
run: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}