diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e6901cd..211f007 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: latest + node-version: lts/* cache: npm - name: Install dependencies 📦 diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 4310390..171189c 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: latest + node-version: lts/* cache: npm - name: Install dependencies 📦 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1d013b4..fd17572 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 diff --git a/README.template.md b/README.template.md index 4171058..875d0ce 100644 --- a/README.template.md +++ b/README.template.md @@ -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).