generated from theholocron/monorepo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1021 Bytes
/
publish.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
name: Publish
on: # yamllint disable-line rule:truthy
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
publish-npm:
name: Publish to NPM
permissions:
contents: write
packages: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: Checkout repository
- uses: actions/setup-node@v4
name: Setup Node.js @v20
with:
cache: npm
node-version: 20.x
- run: npm ci
name: Install dependencies
- run: npm run build
name: Compile library
- uses: changesets/action@v1
name: Publish to NPM
with:
title: "chore(release): 🦋 version packages"
commit: "chore(release): 🦋 version packages"
version: npx changeset version
publish: npx changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}