mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
32 lines
650 B
YAML
32 lines
650 B
YAML
name: Publish to npm.pkg.github.com
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
build-and-publish:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '16.x'
|
|
registry-url: 'https://npm.pkg.github.com'
|
|
|
|
- name: Install dependencies and build
|
|
run: npm install && npm run build
|
|
|
|
- name: Publish package to npm.pkg.github.com
|
|
run: npm publish
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|