-
Notifications
You must be signed in to change notification settings - Fork 8
47 lines (38 loc) · 1.1 KB
/
publish.yaml
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
47
name: Publish to NPM
permissions:
contents: write
# Manually triggered workflow
on:
workflow_dispatch: {}
jobs:
publish:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22]
package-dir: [js]
steps:
- name: Checkout repository
uses: actions/checkout@v3
env:
GH_TOKEN: ${{ github.token }}
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
working-directory: ./${{ matrix.package-dir }}
run: npm install
- name: Lint
working-directory: ./${{ matrix.package-dir }}
run: npm run lint
- name: Configure Git
run: |
git config --global user.email "hi@reclaimprotocol.org"
git config --global user.name "Reclaim CI"
- name: Publish to NPM
working-directory: ./${{ matrix.package-dir }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run publish:pkg