mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-18 20:21:36 +00:00
ci: add release
This commit is contained in:
parent
07beac4aa4
commit
401fdcdc60
36
.github/workflows/release.yml
vendored
Normal file
36
.github/workflows/release.yml
vendored
Normal file
@ -0,0 +1,36 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
release:
|
||||
name: Release
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 14
|
||||
- name: Cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-npm-${{ hashFiles('**/package.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-npm-
|
||||
- name: Install dependencies
|
||||
run: npm i
|
||||
env:
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
- name: Release
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
run: npx semantic-release
|
@ -47,7 +47,9 @@
|
||||
"ws": "^7.4.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@webtorrent/semantic-release-config": "^1.0.5",
|
||||
"magnet-uri": "6.2.0",
|
||||
"semantic-release": "^17.4.3",
|
||||
"standard": "*",
|
||||
"tape": "5.2.2",
|
||||
"webtorrent-fixtures": "1.7.3",
|
||||
@ -98,5 +100,8 @@
|
||||
"extends": [
|
||||
"github>webtorrent/renovate-config"
|
||||
]
|
||||
},
|
||||
"release": {
|
||||
"extends": "@webtorrent/semantic-release-config"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user