-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 1 KB
/
publish-npm.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
name: Publish to npm
on:
push:
branches:
- release
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: pnpm setup
uses: pnpm/action-setup@v3
with:
version: 9
- name: Node.js setup
uses: actions/setup-node@v4
with:
node-version: 22
registry-url: "https://registry.npmjs.org"
- name: Install
run: pnpm install --frozen-lockfile
- name: Run check, lint and test
run: |
pnpm run check
pnpm run lint
pnpm run test
- name: Build
run: pnpm --filter redgeometry run build
- name: Publish
run: pnpm publish ./packages/redgeometry --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}