-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (36 loc) · 1.04 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
40
41
42
43
44
45
46
name: Publish NPM packages
on:
workflow_dispatch:
jobs:
release-packages:
runs-on: ubuntu-latest
name: Release packages
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.IMJS_ADMIN_GH_TOKEN }}
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 7.33.2
- name: Use Node.js 20
uses: actions/setup-node@v3
with:
node-version: 20.18.1
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm run build
- name: Lint
run: pnpm run lint
- name: Test
run: pnpm run test
- name: Publish packages
run: |
git config --local user.email [email protected]
git config --local user.name imodeljs-admin
pnpm publish-packages -y --branch ${{ github.ref_name }} --message "Version bump [skip actions][publish docs]"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_PUBLISH_ITWIN }}