diff --git a/.changeset/npm-trusted-publishing.md b/.changeset/npm-trusted-publishing.md new file mode 100644 index 0000000..4e1b6cd --- /dev/null +++ b/.changeset/npm-trusted-publishing.md @@ -0,0 +1,7 @@ +--- +"immutable-class": patch +"eslint-plugin-immutable-class": patch +"immutable-class-tester": patch +--- + +Add npm trusted publishing support for automated releases via OIDC diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e0b750b..359e456 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,6 +37,10 @@ jobs: needs: [build] name: Release runs-on: ubuntu-latest + permissions: + id-token: write + contents: write + pull-requests: write steps: - uses: actions/checkout@v4 @@ -51,6 +55,9 @@ jobs: - run: npm install --prefer-offline --no-audit + - name: Update npm + run: npm install -g npm@latest + - name: Create Release Pull Request or Publish to npm id: changesets uses: changesets/action@v1