From 45c3c1bb8dff94b1038111905359332e87347775 Mon Sep 17 00:00:00 2001 From: SN0WF14K3 Date: Sun, 20 Jun 2021 00:25:22 +0545 Subject: [PATCH] ci: dev publish --- .github/workflows/publish-dev.yml | 32 +++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/publish-dev.yml diff --git a/.github/workflows/publish-dev.yml b/.github/workflows/publish-dev.yml new file mode 100644 index 0000000..1b20ac2 --- /dev/null +++ b/.github/workflows/publish-dev.yml @@ -0,0 +1,32 @@ +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 + with: + ref: v5 + + - name: Install Node v14 + uses: actions/setup-node@v2 + with: + node-version: 14 + registry-url: https://registry.npmjs.org/ + + - name: Install dependencies + run: npm ci --ignore-scripts + + - name: Publish + run: | + npm install + npm run build --skipLibCheck + npm version --git-tag-version=false $(jq --raw-output '.version' package.json).$(git rev-parse --verify HEAD) + npm publish --tag dev || true + env: + NODE_AUTH_TOKEN: ${{ secrets.npm_token }}