initial commit
This commit is contained in:
29
node_modules/isbinaryfile/.github/workflows/publish.yml
generated
vendored
Normal file
29
node_modules/isbinaryfile/.github/workflows/publish.yml
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
name: Publish Package
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
permissions:
|
||||
id-token: write # Required for OIDC
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: '20'
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
|
||||
# Ensure npm 11.5.1 or later is installed
|
||||
- name: Update npm
|
||||
run: npm install -g npm@latest
|
||||
- run: npm ci
|
||||
- run: npm run build --if-present
|
||||
- run: npm test
|
||||
- run: npm publish --provenance --access public
|
||||
Reference in New Issue
Block a user