diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index cf6133c6..ba734a18 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -5,6 +5,15 @@ on: types: [created] jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 12 + - run: yarn install + publish-npm: needs: build runs-on: ubuntu-latest @@ -14,6 +23,6 @@ jobs: with: node-version: 12 registry-url: https://registry.npmjs.org/ - - run: lerna publish + - run: yarn lerna publish env: NODE_AUTH_TOKEN: ${{secrets.npm_token}}