-
Notifications
You must be signed in to change notification settings - Fork 8
37 lines (29 loc) · 923 Bytes
/
npm-publish.yml
File metadata and controls
37 lines (29 loc) · 923 Bytes
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
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
name: Publish Package to npmjs
on:
release:
types: [created]
jobs:
quality-check:
uses: ./.github/workflows/quality-check.yml
secrets: inherit
publish:
needs: quality-check
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Set Node.js
uses: actions/setup-node@v6
with:
node-version: 24
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: pnpm i --frozen-lockfile
- run: pnpm publish --no-git-checks