Skip to content

Commit caa802a

Browse files
committed
chore: prerelease pipeline
1 parent 28a72de commit caa802a

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/prerelease.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
release:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
- uses: volta-cli/action@v4
12+
- name: Dependencies
13+
run: yarn
14+
- name: Lint
15+
run: yarn lint
16+
- name: Build
17+
run: yarn build
18+
- name: Test
19+
run: yarn test
20+
- name: Do Release
21+
run: |
22+
git config --global user.email "bot@noreply.lukasbach.com"
23+
git config --global user.name "lukasbachbot"
24+
npm set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
25+
yarn lerna publish prerelease --yes --no-verify-access --summary-file --loglevel silly --dist-tag prerelease
26+
env:
27+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
28+
- name: Release info
29+
run: cat ./lerna-publish-summary.json

0 commit comments

Comments
 (0)