ant-design/.github/workflows/publish-to-github-package.yml
2019-09-14 15:32:52 +08:00

29 lines
539 B
YAML

name: Publish to github-package
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@master
- uses: actions/setup-node@v1
with:
node-version: '12.x'
registry-url: 'https://npm.pkg.github.com'
- name: install
run: npm install
- name: compile
run: npm run compile
- name: publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}