mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-19 06:43:16 +08:00
chore: publish to github-package when released
This commit is contained in:
parent
56abebfb3c
commit
f986c6b459
29
.github/workflows/publish-to-github-package.yml
vendored
Normal file
29
.github/workflows/publish-to-github-package.yml
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
name: Publish to github-package
|
||||
on:
|
||||
release:
|
||||
actions:
|
||||
- published
|
||||
branches:
|
||||
- master
|
||||
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 }}
|
Loading…
Reference in New Issue
Block a user