-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (31 loc) · 891 Bytes
/
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
on:
push:
branches:
- master
- main
name: Release
permissions:
id-token: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: GoogleCloudPlatform/release-please-action@v3
id: release
with:
token: ${{secrets.RELEASE_TOKEN}}
release-type: node
package-name: "rehype-prism"
- uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: "https://registry.npmjs.org"
if: ${{ steps.release.outputs.release_created }}
- run: corepack pnpm i
if: ${{ steps.release.outputs.release_created }}
- run: corepack pnpm publish --provenance
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
if: ${{ steps.release.outputs.release_created }}