vscode-extension-telemetry/.github/workflows/npm-publish.yml

24 строки
672 B
YAML
Исходник Обычный вид История

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
name: Node.js Package
on:
release:
types: [created]
jobs:
publish-npm:
2021-10-08 17:35:09 +03:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
2021-12-27 17:08:17 +03:00
node-version: 16
registry-url: https://registry.npmjs.org/
2021-08-27 17:56:49 +03:00
- run: npm install
- run: npm run compile
2022-01-19 23:46:51 +03:00
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}