Skip to content

Commit

Permalink
feat: setup pkg.pr.new
Browse files Browse the repository at this point in the history
  • Loading branch information
0t4u committed Nov 16, 2024
1 parent e0c0b8e commit 31c7eb8
Show file tree
Hide file tree
Showing 3 changed files with 548 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@
name: Prerelease
on: workflow_dispatch

on:
push:
branches:
- "**"
tags:
- "!**"
pull_request:

jobs:
publish:
name: Publish Prerelease
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Publish to NPM
- name: Use Node LTS
uses: actions/setup-node@v4
if: ${{ steps.changelog.outputs.skipped == 'false' }}
with:
node-version: lts/*
registry-url: https://registry.npmjs.org
- run: npm i
- run: 'npm version --preid=git --no-git-tag-version 0.0.0-git.$(git rev-parse HEAD)'
- run: npm publish --provenance --access public --tag prerelease
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
cache: npm
cache-dependency-path: package-lock.json
- name: Install Depedencies
run: npm ci
- name: Publish to pkg.pr.new
run: npx pkg-pr-new publish
Loading

0 comments on commit 31c7eb8

Please sign in to comment.