diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index 8b00e16..0399ff6 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -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 }} \ No newline at end of file + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file diff --git a/package.json b/package.json index 91394ed..c3913ff 100644 --- a/package.json +++ b/package.json @@ -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": "haesungoh414@gmail.com",