-
Notifications
You must be signed in to change notification settings - Fork 10
36 lines (32 loc) · 1.1 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
name: Release
on:
workflow_dispatch:
inputs:
cliArgs:
description: 'CLI args'
required: false
default: ''
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.FLOW_GITHUB_TOKEN }}
- name: Install dependencies
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 'true'
run: yarn install --immutable --immutable-cache
- name: Husky install
if: steps.yarn-cache.outputs.cache-hit == 'true'
run: yarn husky install
- name: 'Set npm token'
uses: './.github/actions/set-npm-token'
with:
npm-token: ${{ secrets.NPM_PUBLISH_TOKEN }}
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.FLOW_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
run: npx semantic-release ${{ github.event.inputs.cliArgs }}