diff --git a/.github/workflows/publish-dev.yml b/.github/workflows/publish-dev.yml new file mode 100644 index 000000000..4d8e42399 --- /dev/null +++ b/.github/workflows/publish-dev.yml @@ -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 }}