Browse Source

chore: releases bump package.json version

master
Andrew Kaiser 4 years ago
parent
commit
e40163bf18
1 changed files with 10 additions and 2 deletions
  1. +10
    -2
      .github/workflows/npm-publish.yml

+ 10
- 2
.github/workflows/npm-publish.yml View File

@ -13,7 +13,15 @@ jobs:
with: with:
node-version: 12 node-version: 12
registry-url: https://registry.npmjs.org/ registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
env: env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}} NODE_AUTH_TOKEN: ${{secrets.npm_token}}
GITHUB_TOKEN: ${{ secrets.github_token }}
TAG: ${{ github.ref }}
- run: npm version --no-git-tag-version $TAG
- run: npm publish
- run: git fetch origin master
- run: git checkout master
- run: git add package.json
- run: git commit --messsage "release $TAG"
- run: git remote add deploy https://${GITHUB_TOKEN}@github.com/${{ github.repository }}.git
- run: git push deploy master

Loading…
Cancel
Save