siakhooi/ts-number-to-chinese-words

View on GitHub
.github/workflows/publish-gpr.yml

Summary

Maintainability
Test Coverage
name: Publish to gpr registry

on:
  workflow_call:
    secrets:
      PUBLISH_GITHUB_TOKEN:
        required: true

jobs:
  publish_gqr:
    name: Publish to github registry
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/download-artifact@v4
        with:
          name: dist
          path: ./dist/
      - uses: actions/setup-node@v4
        with:
          node-version: 16
          registry-url: 'https://npm.pkg.github.com'
      - run: npm install
      - run: npm publish
        env:
          NODE_AUTH_TOKEN: ${{ secrets.PUBLISH_GITHUB_TOKEN }}