Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/samualtnorman/lib. A collection of common utilities I need. www.npmjs.com/package/@samual/lib
Something went wrong. Try again.
123456789101112131415161718192021222324name: Publishon: { push: { branches: [ main ] }, release: { types: [ created ] } }
jobs: publish: name: Publish runs-on: ubuntu-latest
steps: - uses: actions/checkout@v2.4.2 - { name: Setup Node.js environment, uses: actions/setup-node@v3.1.1, with: { node-version: ">=14" } } - { name: Setup PNPM, uses: pnpm/action-setup@v2.2.1, with: { version: 8.0.0, run_install: true } } - run: git config --global user.email github-action@users.noreply.github.com - run: git config --global user.name "Github Action" - run: pnpm 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 && pnpm publish --tag dev
- name: Publish release if: github.event_name == 'release' run: pnpm package && cd dist && pnpm publish --no-git-checks