Skip to content

@distube/youtube@1.0.2 #13

@distube/youtube@1.0.2

@distube/youtube@1.0.2 #13

Workflow file for this run

name: Publish distube
on:
release:
types: [published]
jobs:
publish:
name: Build & Publish
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: latest
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: pnpm install --ignore-scripts --frozen-lockfile
- name: Parse tag name
id: parsed
run: |
echo "package=$(echo ${{ github.event.release.tag_name }} | sed 's/.*@distube\/\(.*\)@\(.*\)/\1/g')" >> $GITHUB_OUTPUT
echo "version=$(echo ${{ github.event.release.tag_name }} | sed 's/.*@distube\/.*@\(.*\)/\1/g')" >> $GITHUB_OUTPUT
- name: Publish
run: |
pnpm publish --filter "@distube/${{ steps.parsed.outputs.package }}" --access public --no-git-checks
pnpm deprecate @distube/${{ steps.parsed.outputs.package }}@"< ${{ steps.parsed.outputs.version }}" "This version is deprecated, please upgrade to the latest version."
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
NPM_CONFIG_PROVENANCE: true