Skip to content

Commit

Permalink
try NPM registry
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSpoocy committed May 6, 2024
1 parent c65f53d commit 4986723
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish package to GitHub Packages
name: Publish package
on:
release:
types: [published]
Expand All @@ -9,16 +9,17 @@ jobs:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to GitHub Packages
- uses: actions/setup-node@v4
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://npm.pkg.github.com'
registry-url: 'https://registry.npmjs.org'
scope: '@extendscript'
- name: Install dependencies and build 🔧
run: npm ci && npm run build
- name: Publish package on Github 📦
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 0 additions & 3 deletions .npmrc

This file was deleted.

0 comments on commit 4986723

Please sign in to comment.