forked from lxm_front/Mergely
ci: update publish CI
This commit is contained in:
13
.github/workflows/npm-publish.yaml
vendored
13
.github/workflows/npm-publish.yaml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user