-
Notifications
You must be signed in to change notification settings - Fork 7
38 lines (36 loc) · 1.03 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
name: Release
on:
workflow_dispatch:
push:
branches: [beta]
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- name: Setup Git
run: |
git config user.name "GitHub Actions"
git config user.email "twittwer@users.noreply.github.com"
- name: Install Dependencies
run: npm ci
- name: Beta Release
if: ${{ github.ref == 'refs/heads/beta' }}
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx nx run compodoc:release:beta
- name: Release
if: ${{ github.ref == 'refs/heads/main' }}
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx nx run compodoc:release:remote