Skip to content

Improve tree shaking #85

Improve tree shaking

Improve tree shaking #85

Workflow file for this run

name: Release
on:
- push
jobs:
build:
name: Release
runs-on: ubuntu-latest
permissions:
actions: read
contents: write
strategy:
fail-fast: false
matrix:
os:
- "ubuntu-latest"
node-version:
- "22"
steps:
- uses: actions/checkout@v4
- run: npm i
- run: npm t -- -u
- run: npm run format
- name: commit auto fixes
env:
USERNAME: ${{ github.actor }}
BRANCH: ${{ github.ref_name }}
REPO: ${{ github.repository }}
run: |
if [ "$(git diff --quiet && echo 0 || echo $?)" -gt 0 ]; then
git commit -am "😎 Autofix"
git push origin $BRANCH
exit 1
fi
- name: Add NPM token
if: github.ref == 'refs/heads/main'
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
- name: Build and Publish
if: github.ref == 'refs/heads/main'
run: npx @lets/publish