mirror of https://github.com/sobolevn/git-secret
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
789 B
YAML
31 lines
789 B
YAML
2 years ago
|
name: Release
|
||
|
|
||
|
on:
|
||
|
release: { types: [published] }
|
||
|
workflow_dispatch:
|
||
|
|
||
|
jobs:
|
||
|
npmjs:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
- uses: actions/setup-node@v2
|
||
|
with:
|
||
|
registry-url: "https://registry.npmjs.org"
|
||
|
- run: npm publish --ignore-scripts
|
||
|
env:
|
||
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||
|
|
||
|
github-npm:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
- uses: actions/setup-node@v2
|
||
|
with:
|
||
|
registry-url: "https://npm.pkg.github.com"
|
||
|
- name: scope package name as required by GHPR
|
||
|
run: npm init -y --scope ${{ github.repository_owner }}
|
||
|
- run: npm publish --ignore-scripts
|
||
|
env:
|
||
|
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|