-
-
Notifications
You must be signed in to change notification settings - Fork 82
42 lines (40 loc) · 1.24 KB
/
prerelease.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
40
41
42
name: Prerelease
on:
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: volta-cli/action@v4
- name: Dependencies
run: yarn
- name: Lint
run: yarn lint
- name: Build
run: yarn build
- name: Test
run: yarn test
- name: Do Release
run: |
git config --global user.email "[email protected]"
git config --global user.name "lukasbachbot"
npm set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
yarn lerna publish prerelease --yes --no-verify-access --summary-file --loglevel silly --dist-tag prerelease
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Release info
run: cat ./lerna-publish-summary.json
- name: Update lockfile
run: |
echo "enableImmutableInstalls: false" > ./.yarnrc.yml
yarn
git checkout HEAD -- ./.yarnrc.yml
env:
CI: false
- name: Push remaining changes
uses: EndBug/add-and-commit@v9
with:
author_name: lukasbachbot
author_email: [email protected]
message: 'chore: tidy up after prerelease'