-
Notifications
You must be signed in to change notification settings - Fork 15
37 lines (30 loc) · 986 Bytes
/
publish.yml
File metadata and controls
37 lines (30 loc) · 986 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
name: Release package
on:
push:
tags:
- 'v*'
workflow_dispatch:
permissions:
# Enable reading repository contents (allows checkout without token)
contents: read
# Enable the use of OIDC for trusted publishing and npm provenance
id-token: write
jobs:
publish:
runs-on: ubuntu-latest
timeout-minutes: 31
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: Configure doist package repository
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
scope: '@doist'
registry-url: 'https://registry.npmjs.org/'
- name: Ensure npm 11.5.1 or later is installed
run: npm install -g npm@latest
- name: Install dependencies
run: npm ci
- name: Publish package
run: npm publish --provenance --access public