ci: update publish CI

This commit is contained in:
Jamie Peabody
2021-11-21 12:27:48 +00:00
parent 0de9e87df8
commit e1763b3b9d

View File

@@ -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 }}