mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-21 21:04:43 +12:00
ci: publish action for automatic master releases
This commit is contained in:
parent
6567ba821a
commit
01bb2ac97b
1 changed files with 27 additions and 0 deletions
27
.github/workflows/publish-dev.yml
vendored
Normal file
27
.github/workflows/publish-dev.yml
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
name: Publish dev
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 */12 * * *'
|
||||
jobs:
|
||||
npm:
|
||||
name: npm
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install Node v14
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 14
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Publish
|
||||
run: |
|
||||
npm version --git-tag-version=false $(cat package.json | grep -oP '"version": "\K[^"]+(?=")').$(git rev-parse --verify HEAD)
|
||||
npm publish --tag dev || true
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
|
Loading…
Reference in a new issue