Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/samualtnorman/binmat. binmat simulator for game hackmud
Something went wrong. Try again.
123456789101112131415161718192021222324name: Publishon: { push: { branches: [ main ] }, release: { types: [ created ] } }
jobs: publish: name: Publish runs-on: ubuntu-latest
steps: - { name: Checkout, uses: actions/checkout@v3.5.3 } - { name: Setup Node.js environment, uses: actions/setup-node@v3.8.1, with: { node-version: 18.x } } - { name: Setup pnpm, uses: pnpm/action-setup@v2.4.0, with: { version: 8.6.x, run_install: true } } - run: git config --global user.email github-action@users.noreply.github.com - run: git config --global user.name "Github Action" - run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
- name: Publish dev if: github.event_name == 'push' run: scripts/version-dev.js && pnpm package && cd dist && npm publish --no-git-checks --tag dev
- name: Publish release if: github.event_name == 'release' run: pnpm package && cd dist && npm publish --no-git-checks