publish-release.yml 611 B

1234567891011121314151617181920212223
  1. name: build
  2. on:
  3. release:
  4. types: [created]
  5. jobs:
  6. build-publish:
  7. runs-on: ubuntu-latest
  8. steps:
  9. - uses: actions/checkout@v2
  10. - uses: actions/setup-node@v1
  11. with:
  12. node-version: 14
  13. registry-url: https://registry.npmjs.org/
  14. - run: yarn install
  15. - run: yarn build
  16. - run: git config --global user.name "ON LX Team"
  17. - run: git config --global user.email "team@onlx.ltd"
  18. - run: npm version ${{ github.event.release.tag_name }} --allow-same-version
  19. - run: npm publish
  20. env:
  21. NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}