Skip to content

Commit

Permalink
Update release-package.yml, .npmrc, and package.json to publish to npmjs
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemklee committed Apr 5, 2023
1 parent 33b4569 commit a4deb1d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
name: Publish package to GitHub Packages
name: Publish Package to npmjs
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to GitHub Packages
- uses: actions/setup-node@v3
with:
node-version: "16.x"
registry-url: "https://npm.pkg.github.com"
registry-url: "https://registry.npmjs.org"
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.PACKAGES_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@mikemklee:registry=https://npm.pkg.github.com
@mikemklee:registry=https://registry.npmjs.org
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "three-viewcube",
"version": "0.0.14",
"version": "0.0.15",
"description": "Controls for 3D orientation",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -23,7 +23,7 @@
},
"homepage": "https://github.com/mikemklee/three-viewcube#readme",
"publishConfig": {
"@mikemklee:registry": "https://npm.pkg.github.com"
"@mikemklee:registry": "https://registry.npmjs.org"
},
"devDependencies": {
"@types/three": "^0.150.1",
Expand Down

1 comment on commit a4deb1d

@vercel
Copy link

@vercel vercel bot commented on a4deb1d Apr 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.