discord-player-play-dl/.github/workflows/publish-dev.yml

32 lines
785 B
YAML
Raw Normal View History

2021-06-19 23:40:22 +05:00
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:
2021-08-08 00:46:05 +05:00
ref: develop
2021-06-19 23:40:22 +05:00
2021-08-05 14:11:13 +05:00
- name: Install Node v16
2021-06-19 23:40:22 +05:00
uses: actions/setup-node@v2
with:
2021-08-05 14:11:13 +05:00
node-version: 16
2021-06-19 23:40:22 +05:00
registry-url: https://registry.npmjs.org/
- name: Install dependencies
2021-06-20 12:11:26 +05:00
run: npm install
2021-06-19 23:40:22 +05:00
- name: Publish
run: |
2021-06-20 17:25:08 +05:00
npx tsc --skipLibCheck
2021-08-08 00:46:05 +05:00
npm version --git-tag-version=false $(jq --raw-output '.version' package.json)-dev.$(date +%s).$(git rev-parse --short HEAD)
2021-06-19 23:40:22 +05:00
npm publish --tag dev || true
env:
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}