ci: publish action for automatic master releases

This commit is contained in:
iCrawl 2021-05-30 21:33:02 +02:00
parent 6567ba821a
commit 01bb2ac97b
No known key found for this signature in database
GPG key ID: 1AB888B16355FBB2

27
.github/workflows/publish-dev.yml vendored Normal file
View 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 }}