0.3.2 #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: π Publish | |
on: | |
push: | |
branches: | |
- main | |
pull_request: {} | |
permissions: | |
actions: write | |
contents: read | |
jobs: | |
deploy: | |
name: π Publish | |
runs-on: ubuntu-latest | |
# only build/deploy main branch on pushes | |
if: ${{ (github.ref == 'refs/heads/main') && | |
github.event_name == 'push' }} | |
steps: | |
- name: β¬οΈ Checkout repo | |
uses: actions/checkout@v3 | |
- name: β Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
registry-url: https://registry.npmjs.org/ | |
- name: π Deploy Production | |
if: ${{ github.ref == 'refs/heads/main' }} | |
run: yarn install && yarn tsup && npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_GITHUB_TOKEN }} |