diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 56c76d0..a5b8efe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,8 @@ jobs: steps: - uses: Brightspace/third-party-actions@actions/checkout - uses: Brightspace/third-party-actions@actions/setup-node + with: + node-version-file: .nvmrc - name: Install dependencies run: npm install - name: Lint diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7a879b3..c870ab9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,6 @@ on: - '[0-9]+.[0-9]+.x' jobs: release: - if: "!contains(github.event.head_commit.message, 'skip ci')" name: Release timeout-minutes: 2 runs-on: ubuntu-latest @@ -18,10 +17,11 @@ jobs: persist-credentials: false - name: Setup Node uses: Brightspace/third-party-actions@actions/setup-node + with: + node-version-file: .nvmrc - name: Semantic Release - uses: BrightspaceUI/actions/semantic-release@master + uses: BrightspaceUI/actions/semantic-release@main with: - DEFAULT_BRANCH: main GITHUB_TOKEN: ${{ secrets.D2L_GITHUB_TOKEN }} NPM: true NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..0cee939 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +18 diff --git a/README.md b/README.md index 84d1dd2..745b65e 100644 --- a/README.md +++ b/README.md @@ -276,7 +276,7 @@ Contributions are welcome, please submit a pull request! > TL;DR: Commits prefixed with `fix:` and `feat:` will trigger patch and minor releases when merged to `main`. Read on for more details... -The [sematic-release GitHub Action](https://github.com/BrightspaceUI/actions/tree/master/semantic-release) is called from the `release.yml` GitHub Action workflow to handle version changes and releasing. +The [semantic-release GitHub Action](https://github.com/BrightspaceUI/actions/tree/main/semantic-release) is called from the `release.yml` GitHub Action workflow to handle version changes and releasing. ### Version Changes