diff --git a/.github/workflows/npm-publish.yaml b/.github/workflows/npm-publish.yaml index 88b5ac7..5cde101 100644 --- a/.github/workflows/npm-publish.yaml +++ b/.github/workflows/npm-publish.yaml @@ -14,20 +14,8 @@ jobs: uses: actions/setup-node@v2-beta with: node-version: 12.0.0 - - name: Setup NPM credentials - run: echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" >> ~/.npmrc - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} - run: npm install - run: npm run build - - name: Create Release Pull Request or Publish to npm - id: changesets - uses: changesets/action@master + - uses: JS-DevTools/npm-publish@v1 with: - publish: npm publish - commit: 'Bump up version' - title: 'Upcoming Release Changes' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} - + token: ${{ secrets.NPM_AUTH_TOKEN }}