26 lines
517 B
YAML
26 lines
517 B
YAML
name: npm publish
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
id-token: write
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
ref: master
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 22
|
|
cache: 'npm'
|
|
registry-url: 'https://registry.npmjs.org'
|
|
- name: Install dependencies
|
|
run: npm install
|
|
- name: Publish Package To npmjs
|
|
run: npm publish --provenance
|