diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 64ac8d6..9868398 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: matrix: variations: [ {os: ubuntu-latest, node: latest}, - {os: ubuntu-latest, node: 18} + {os: ubuntu-latest, node: 22} ] runs-on: ${{ matrix.variations.os }} @@ -29,6 +29,8 @@ jobs: with: node-version: ${{ matrix.variations.node }} registry-url: 'https://registry.npmjs.org' + - name: Use npm version supporting min-release-age + run: npm install -g npm@^12.0.0 - name: Install run: npm install - name: Test diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 83815db..6175a7c 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -37,7 +37,7 @@ jobs: - name: Update NPM shell: bash # Must be greater than 11.5.1 for OIDC. - run: npm install -g npm@11.6.2 + run: npm install -g npm@^12.0.0 - name: Install Dependencies run: npm install diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..8b636f7 --- /dev/null +++ b/.npmrc @@ -0,0 +1,3 @@ +min-release-age=3 +min-release-age-exclude[]=launchdarkly-eventsource +min-release-age-exclude[]=launchdarkly-js-sdk-common diff --git a/contract-tests/.npmrc b/contract-tests/.npmrc new file mode 100644 index 0000000..8b636f7 --- /dev/null +++ b/contract-tests/.npmrc @@ -0,0 +1,3 @@ +min-release-age=3 +min-release-age-exclude[]=launchdarkly-eventsource +min-release-age-exclude[]=launchdarkly-js-sdk-common