diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 52faae1..726d734 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -28,7 +28,7 @@ jobs: node-version: 14 registry-url: https://registry.npmjs.org/ - run: npm ci - - run: npm publish + - run: npm publish --access=public env: NODE_AUTH_TOKEN: ${{secrets.npm_token}} @@ -45,6 +45,6 @@ jobs: node-version: 14 registry-url: https://npm.pkg.github.com/ - run: npm ci - - run: npm publish + - run: npm publish --access=public env: NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/package-lock.json b/package-lock.json index 2e4f550..7549349 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "fan.js", + "name": "@dukeluo/fanjs", "version": "0.0.1", "lockfileVersion": 1, "requires": true, diff --git a/package.json b/package.json index ff907a8..7d20e64 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "fan.js", + "name": "@dukeluo/fanjs", "version": "0.0.1", "description": "A simple and easy-to-understand implementation of Promise/A+ spec for learning.", "keywords": [