Skip to content

Commit e525b24

Browse files
committed
Release workflow testing
1 parent 0faa411 commit e525b24

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/release.yml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: release
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
version:
6+
type: choice
7+
description: Version number to increment
8+
options:
9+
- major
10+
- minor
11+
- patch
12+
13+
jobs:
14+
release:
15+
env:
16+
CI: true
17+
GITHUB_TOKEN: ${{ secrets.ACTION_GITHUB_TOKEN }}
18+
NPM_OTP_TOKEN: ${{ github.event.inputs.otp }}
19+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v2
23+
- name: Use Node.js lts
24+
uses: actions/setup-node@v2
25+
with:
26+
node-version: lts/*
27+
registry-url: https://registry.npmjs.org
28+
- name: Use NPM 8
29+
run: npm i -g npm@8
30+
- run: npm ci
31+
- name: build
32+
run: npm run build
33+
# - name: test
34+
# if: ${{ always() }}
35+
# run: npm run test
36+
# - name: lint
37+
# if: ${{ always() }}
38+
# run: npm run lint
39+
# - name: style
40+
# if: ${{ always() }}
41+
# run: npm run format:check
42+
- name: npm auth
43+
run: npm set "//registry.npmjs.org/:_authToken" ${{ env.NPM_TOKEN }}
44+
- name: perform release
45+
run: |
46+
npm run release -- \
47+
${{ github.event.inputs.version }} \
48+
--ci \
49+
--dry-run

0 commit comments

Comments
 (0)