-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (66 loc) · 1.89 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: publish
on:
push:
branches: [main]
jobs:
docs-publish:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: ConorMacBride/install-package@v1
with:
apt: just
- uses: pnpm/action-setup@v4
with:
version: 9.9.0
- uses: actions/setup-node@v4
with:
node-version: 22.7.0
cache: pnpm
- run: just install
- run: just docs-build
- uses: actions/upload-pages-artifact@v3
with:
path: docs
docs-deploy:
runs-on: ubuntu-24.04
needs: docs-publish
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4
ts-standard-publish:
runs-on: ubuntu-24.04
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: ConorMacBride/install-package@v1
with:
apt: just
- uses: pnpm/action-setup@v4
with:
version: 9.9.0
- 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: echo 'token'
- run: echo ${{ secrets.GITHUB_TOKEN }}
- run: echo '//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN} @esrathkkm:registry=https://npm.pkg.github.com/' > ~/.npmrc
- run: pnpm publish -r --filter tagup-ts-standard --access restricted --no-git-checks --registry=https://npm.pkg.github.com/
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - run: just ts-standard-install
# - run: just ts-standard-build
# - uses: simenandre/publish-with-pnpm@v2
# with:
# npm-auth-token: ${{ secrets.GITHUB_TOKEN }}