diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 99ad8e80..d84f1e91 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,6 +2,7 @@ name: Publish packages on NPM on: release: types: [created] + push: jobs: build: runs-on: ubuntu-latest @@ -10,12 +11,11 @@ jobs: - uses: actions/setup-node@v1 with: node-version: "18.x" - - run: yarn config set npmAuthToken $NPM_PUBLISH_TOKEN - env: - NPM_PUBLISH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} - run: yarn - run: yarn build - run: yarn publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} notify: runs-on: ubuntu-latest