mirror of
https://github.com/l-lin/font-awesome-animation.git
synced 2024-12-28 14:31:32 +08:00
41 lines
1.0 KiB
YAML
41 lines
1.0 KiB
YAML
|
name: publish
|
||
|
|
||
|
on:
|
||
|
release:
|
||
|
types: [created]
|
||
|
|
||
|
jobs:
|
||
|
publish:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
|
||
|
- uses: actions/setup-node@v1
|
||
|
with:
|
||
|
node-version: '12.x'
|
||
|
registry-url: 'https://registry.npmjs.org'
|
||
|
|
||
|
- name: Install dependencies
|
||
|
run: npm install
|
||
|
|
||
|
- name: Run build
|
||
|
run: npm run build
|
||
|
|
||
|
- name: Publish to NPM packages
|
||
|
# includes a --ignore-scripts command argument to avoid executing npm life cycle scripts during this phase
|
||
|
# for security concerns
|
||
|
run: npm publish --ignore-scripts --access public
|
||
|
env:
|
||
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||
|
|
||
|
# Setup .npmrc file to publish to GitHub Packages
|
||
|
- uses: actions/setup-node@v1
|
||
|
with:
|
||
|
registry-url: 'https://npm.pkg.github.com'
|
||
|
|
||
|
- name: Publish to Github packages
|
||
|
run: npm publish --ignore-scripts --access public
|
||
|
env:
|
||
|
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||
|
|