diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index fe17a802..997c97d5 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -5,18 +5,8 @@ on: types: [created] jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-node@v1 - with: - node-version: 12 - - run: yarn - - run: yarn test publish-npm: - needs: build runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 @@ -27,6 +17,7 @@ jobs: scope: '@mpth' - run: yarn - run: | + yarn test npm version ${{ github.ref }} npm publish env: