-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (38 loc) · 1.05 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
on:
push:
branches:
- main
workflow_dispatch:
name: Release
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
scope: '@lego'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: Request GitHub token
id: get_workflow_token
uses: peter-murray/[email protected]
with:
application_id: ${{ secrets.APP_ID }}
application_private_key: ${{ secrets.APPLICATION_PRIVATE_KEY }}
- name: Release
env:
GITHUB_TOKEN: ${{ steps.get_workflow_token.outputs.token }}
NPM_TOKEN: ${{ secrets.NPMJS_ACCESS_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_ACCESS_TOKEN }}
run: yarn release