mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
Add github actions (#1)
This commit is contained in:
parent
78b0ee6b3c
commit
94112fdf7b
31
.github/workflows/publish.yml
vendored
Normal file
31
.github/workflows/publish.yml
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
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://registry.npmjs.org'
|
||||
|
||||
- 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 }}
|
25
.github/workflows/pull_requests.yml
vendored
Normal file
25
.github/workflows/pull_requests.yml
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
name: Build npm package
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '16.x'
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
|
||||
- name: Install dependencies and build
|
||||
run: npm install && npm run build
|
@ -2,12 +2,9 @@
|
||||
"name": "@demodesk/neko",
|
||||
"version": "1.6.4",
|
||||
"description": "Client as reusable Vue.js component for neko streaming server.",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://gitlab.com/demodesk/neko/client.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://gitlab.com/demodesk/neko/client/-/issues"
|
||||
"repository": "https://github.com/demodesk/neko-client",
|
||||
"publishConfig": {
|
||||
"registry":"https://npm.pkg.github.com"
|
||||
},
|
||||
"main": "dist/neko.umd.js",
|
||||
"module": "dist/neko.common.js",
|
||||
|
Loading…
Reference in New Issue
Block a user