Skip to content

Commit

Permalink
ci: migrate to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
skick1234 committed Jul 10, 2024
1 parent 32d2ed1 commit 95cc77d
Show file tree
Hide file tree
Showing 5 changed files with 948 additions and 1,334 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish @distube/ytdl-core
on:
push:
tags:
- '*'
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: Publish
run: |
pnpm publish --access public --no-git-checks
pnpm deprecate @distube/ytdl-core@"< ${{ github.ref_name }}" "This version is deprecated, please upgrade to the latest version."
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
NPM_CONFIG_PROVENANCE: true
31 changes: 0 additions & 31 deletions .github/workflows/publish_npm.yml

This file was deleted.

Loading

0 comments on commit 95cc77d

Please sign in to comment.