fix: set up the dtslint temp folder only when needed (#449) #111
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: Release | |
on: | |
push: | |
branches: [main] | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
if: "contains(github.event.head_commit.message, 'chore(release): publish')" | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
- name: Install dependencies | |
run: yarn | |
- name: Build | |
run: yarn build | |
- name: Publish to NPM | |
run: | | |
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc | |
echo ":::: Publishing as $(npm whoami)" | |
npm run release:publish | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_RELEASE_AUTH_TOKEN }} |