Skip to content

Commit

Permalink
CIとパッケージデータ更新
Browse files Browse the repository at this point in the history
  • Loading branch information
ci7lus committed Feb 5, 2021
1 parent a656d3b commit 0aa90df
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 13 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ name: Build

on:
push:
branches: [master]
tags: ['v*']
pull_request:
branches: [disabled]
# branches: [master]
# tags: ['v*']
# pull_request:

jobs:
config:
Expand Down Expand Up @@ -86,6 +87,7 @@ jobs:
# check that hls.js doesn't error if requiring in node
# see https://github.com/video-dev/hls.js/pull/1642
node -e 'require("./" + require("./package.json").main)'
cp types/index.d.ts dist/hls.d.ts
env:
CI: true

Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ name: 'CodeQL'

on:
push:
branches: [master]
pull_request:
branches: [master]
schedule:
- cron: '0 3 * * 1'
branches: [disabled]

jobs:
analyze:
Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Publish

on:
release:
types: [published]

jobs:
release:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
- name: Install
run: |
yarn
- name: lint
run: |
yarn lint
yarn prettier:verify
- name: set version
run: |
node ./scripts/set-package-version.js
env:
CI: true
TAG: ${{ needs.config.outputs.tag }}
- name: build
run: |
yarn type-check
yarn build
yarn docs
# check that hls.js doesn't error if requiring in node
# see https://github.com/video-dev/hls.js/pull/1642
node -e 'require("./" + require("./package.json").main)'
cp types/index.d.ts dist/hls.d.ts
env:
CI: true
- name: publish
run: |
yarn publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
{
"name": "hls-b24.js",
"version": "0.12.3",
"name": "@neneka/hls.js",
"license": "Apache-2.0",
"description": "JavaScript HLS client using MediaSourceExtension",
"homepage": "https://github.com/xqq/hls.js",
"homepage": "https://github.com/neneka/hls.js",
"authors": "Guillaume du Pontavice <[email protected]>",
"repository": {
"type": "git",
"url": "https://github.com/xqq/hls.js"
"url": "https://github.com/neneka/hls.js"
},
"bugs": {
"url": "https://github.com/xqq/hls.js/issues"
"url": "https://github.com/neneka/hls.js/issues"
},
"main": "./dist/hls.js",
"types": "./dist/hls.d.ts",
Expand Down

0 comments on commit 0aa90df

Please sign in to comment.