-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 934 Bytes
/
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
name: publish
on:
push:
branches: [main]
jobs:
ts-standard-publish:
runs-on: ubuntu-24.04
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9.9.0
- run: pnpm install
- run: pnpm pack
- run: pnpm publish --registry https://npm.pkg.github.com --access restricted
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - uses: ConorMacBride/install-package@v1
# with:
# apt: just
# - uses: actions/setup-node@v4
# with:
# node-version: 22.7.0
# registry-url: https://npm.pkg.github.com
# cache: pnpm
# - run: just ts-standard-install
# - run: just ts-standard-build
# - uses: simenandre/publish-with-pnpm@v2
# with:
# npm-auth-token: ${{ secrets.GITHUB_TOKEN }}