Skip to content

fix: static data for builder troops (#207) #147

fix: static data for builder troops (#207)

fix: static data for builder troops (#207) #147

Workflow file for this run

name: npm-publish-dev
on:
workflow_dispatch:
push:
branches: [main]
concurrency:
group: release
cancel-in-progress: false
jobs:
build:
name: npm-publish-dev
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install Node v16
uses: actions/setup-node@v2
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- name: Install Dependencies
run: npm ci
- name: Build
run: npm run build
- name: Deprecate Pre-released Version
run: npm deprecate clashofclans.js@"$(npm view clashofclans.js@dev version)" "No longer supported" || true
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish
run: |
npm version --git-tag-version=false $(jq --raw-output '.version' package.json)-dev.$(git rev-parse --short HEAD)
npm publish --tag dev
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}