Skip to content

v1.1.1 Stable

v1.1.1 Stable #4

Workflow file for this run

name: Publish YTMP3-JS
on:
release:
types: [released]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: npm
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: npm ci
- name: Publish to NPM registry
run: |
npm pkg delete devDependencies
npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}