Skip to content

Commit f02b89d

Browse files
author
Vincent Palmer
committed
chore(ci): Publish packages to github registry.
Signed-off-by: Vincent Palmer <[email protected]>
1 parent ea8e726 commit f02b89d

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/publish.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Publish Package
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
packages: write
10+
contents: read
11+
12+
jobs:
13+
lint:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
- uses: pnpm/action-setup@v2
18+
with:
19+
version: 8.6.0
20+
- uses: actions/setup-node@v3
21+
with:
22+
node-version: 18
23+
cache: 'pnpm'
24+
- run: pnpm install --frozen-lockfile
25+
- run: pnpm test
26+
27+
publish:
28+
needs: lint
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v3
32+
- uses: pnpm/action-setup@v2
33+
with:
34+
version: 8.6.0
35+
- uses: actions/setup-node@v3
36+
with:
37+
node-version: 18
38+
cache: 'pnpm'
39+
registry-url: https://npm.pkg.github.com/
40+
- run: pnpm install --frozen-lockfile
41+
- run: pnpm build
42+
- run: pnpm publish
43+
env:
44+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)