-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (43 loc) · 1.26 KB
/
publish-release.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
44
45
46
47
48
49
50
name: Publish Release
on:
release:
types: [released]
jobs:
npm-publish:
name: npm publish
strategy:
fail-fast: false
matrix:
include:
- package: "pelican.js"
folder: "pelican.js"
- package: "@pelicanjs/application"
folder: "application"
- package: "@pelicanjs/client"
folder: "client"
- package: "@pelicanjs/types"
folder: "types"
runs-on: ubuntu-latest
permissions:
id-token: write
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
if: github.repository_owner == 'hexaaagon'
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Node.js v20
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- name: Install dependencies
uses: ./.github/actions/pnpmCache
- name: Build dependencies
run: pnpm run build
- name: Publish stable package
run: |
pnpm --filter=${{ matrix.package }} publish --force --provenance --no-git-checks --access public || true
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}