1
0
mirror of https://github.com/konpa/devicon.git synced 2025-02-22 08:12:26 +01:00
devicon/.github/workflows/npm_publish.yml
2021-07-16 21:25:59 -04:00

24 lines
749 B
YAML

name: "Publish to npm"
on:
release:
types: [released]
jobs:
publish:
environment: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
# "ref" specifies the branch to check out.
# "github.event.release.target_commitish" is a global variable and specifies the branch the release targeted
ref: ${{ github.event.release.target_commitish }}
- name: Use Node.js 12
uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/ # Specifies the registry, this field is required!
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }}