diff --git a/.github/workflows/npm-publish.yaml b/.github/workflows/npm-publish.yaml index 761a93f..95aeeb8 100644 --- a/.github/workflows/npm-publish.yaml +++ b/.github/workflows/npm-publish.yaml @@ -32,15 +32,16 @@ jobs: export VERSION=`cat package.json | grep version | sed -E 's/.*: "(.*)",/\1/'` echo "DIST_TAG=v$VERSION" >> $GITHUB_ENV + - name: Test + run: npm run test + - name: Build - run: npm test + run: npm run build:dist - - name: Tag repo with $DIST_TAG - run: | - git tag $DIST_TAG - git push origin $DIST_TAG + - name: Release + run: npm run release - - name: Publish to npm with dist-tag next + - name: Publish run: npm publish --access public --tag ${{ github.event.inputs.tag }} env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}