Skip to content

Commit

Permalink
docs: use node lts
Browse files Browse the repository at this point in the history
  • Loading branch information
crimx committed Oct 21, 2024
1 parent f70a37f commit 0e0b5ec
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: latest
node-version: lts/*
cache: npm

- name: Install dependencies 📦
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: latest
node-version: lts/*
cache: npm

- name: Install dependencies 📦
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: latest
node-version: lts/*
registry-url: "https://registry.npmjs.org"
cache: npm

Expand Down
4 changes: 4 additions & 0 deletions README.template.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@ Push the tag to remote and CI will publish the new version to npm.
```
git push --follow-tags
```

### CI Publish

If you want to publish the package in CI, you need to set the `NPM_TOKEN` secrets [in GitHub repository settings](https://docs.github.com/en/actions/security-for-github-actions/security-guides/using-secrets-in-github-actions#creating-secrets-for-a-repository). See how to [create a NPM access token](https://docs.npmjs.com/creating-and-viewing-access-tokens).

0 comments on commit 0e0b5ec

Please sign in to comment.