Skip to content

Commit

Permalink
feat: get rid of github packages
Browse files Browse the repository at this point in the history
  • Loading branch information
hyesungoh committed Jun 19, 2022
1 parent 17b19fa commit 61b703b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
name: Publish package to GitHub Packages
name: Publish Package to npmjs
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to GitHub Packages
# Setup .npmrc file to publish to npm
- 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.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
{
"name": "@hyesungoh/create-comet-land",
"version": "1.0.5",
"name": "create-comet-land",
"version": "1.0.6",
"license": "MIT",
"description": "Generate a app with comet-land",
"repository": {
"type": "git",
"url": "https://github.com/hyesungoh/create-comet-land.git"
},
"publishConfig": {
"@hyesungoh:registry": "https://npm.pkg.github.com"
},
"author": {
"name": "Hye Sung Oh",
"email": "[email protected]",
Expand Down

0 comments on commit 61b703b

Please sign in to comment.