diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 614d2a2a1..626078f83 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,16 +33,21 @@ jobs: git config user.name "${GITHUB_ACTOR}" git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" + - name: Configure npm + run: | + npm config set registry https://registry.npmjs.org + npm config set //registry.npmjs.org/:_authToken=${NPM_TOKEN} + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Release package (beta) if: ${{ github.event.inputs.prerelease == 'true' }} run: npm run release -- --ci --preRelease=beta env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Release package if: ${{ github.event.inputs.prerelease == 'false' }} run: npm run release -- --ci env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.gitignore b/.gitignore index 45ccbd1c3..a392cdb35 100644 --- a/.gitignore +++ b/.gitignore @@ -19,6 +19,7 @@ libpeerconnection.log npm-debug.log* testem.log yarn-error.log +.npmrc # ember-try .node_modules.ember-try/ diff --git a/.npmrc b/.npmrc deleted file mode 100644 index 20e4739ba..000000000 --- a/.npmrc +++ /dev/null @@ -1,2 +0,0 @@ -registry=https://registry.npmjs.org -//registry.npmjs.org/:_authToken=$NPM_TOKEN diff --git a/package.json b/package.json index 85aabba53..8b6fd7549 100644 --- a/package.json +++ b/package.json @@ -70,9 +70,7 @@ "@release-it/conventional-changelog": { "preset": "conventionalcommits" }, - "@release-it-plugins/workspaces": { - "skipChecks": true - } + "@release-it-plugins/workspaces": true }, "npm": false, "git": {