Skip to content

Improvement/Badge guideline color (#43) #126

Improvement/Badge guideline color (#43)

Improvement/Badge guideline color (#43) #126

Workflow file for this run

name: Package publish
on:
push:
tags:
- '*'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 17
registry-url: https://npm.pkg.github.com/
scope: "@weglot"
- run: npm install
- run: git config user.email "41898282+github-actions[bot]@users.noreply.github.com" && git config user.name "github-actions[bot]"
- run: npm version ${GITHUB_REF##*/}
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: git push origin HEAD:master
env:
github-token: ${{ secrets.GITHUB_TOKEN }}