mirror of
https://github.com/soconnor0919/beenpad.git
synced 2026-02-04 15:56:37 -05:00
ci: Add push trigger for main branch and remove explicit npm registry URL and auth token from publish workflow.
This commit is contained in:
5
.github/workflows/publish.yml
vendored
5
.github/workflows/publish.yml
vendored
@@ -1,6 +1,8 @@
|
||||
name: Publish Package
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
release:
|
||||
types: [created]
|
||||
workflow_dispatch:
|
||||
@@ -17,9 +19,6 @@ jobs:
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
|
||||
- run: npm ci
|
||||
- run: npm publish --provenance --access public
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user