@@ -117,38 +117,36 @@ jobs:
117117 echo "# Code coverage" >> $GITHUB_STEP_SUMMARY
118118 npx nyc report | sed --expression='1d;$d' >> $GITHUB_STEP_SUMMARY
119119 if : always()
120- # release:
121- # name: Release
122- # concurrency: release
123- # if: ${{ github.event_name == 'push' && github.actor != 'dependabot[bot]' }}
124- # runs-on: ubuntu-latest
125- # needs:
126- # - commitlint
127- # - codelint
128- # - buildlint
129- # - test
130- # permissions:
131- # contents: write # to be able to publish a GitHub release
132- # issues: write # to be able to comment on released issues
133- # pull-requests: write # to be able to comment on released pull requests
134- # id-token: write # to enable use of OIDC for npm provenance
135- # steps:
136- # - name: Checkout
137- # uses: actions/checkout@v3
138- # with:
139- # fetch-depth: 0
140- # - name: Setup Node.js
141- # uses: actions/setup-node@v3
142- # with:
143- # node-version: "lts/*"
144- # cache: 'npm'
145- # - name: Install dependencies
146- # run: npm clean-install
147- # - name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
148- # run: npm audit signatures
149- # - name: Release
150- # env:
151- # NPM_CONFIG_PROVENANCE: true
152- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
153- # NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
154- # run: npx semantic-release
120+ release :
121+ name : Release
122+ concurrency : release
123+ if : ${{ github.repository_owner == 'tediousjs' && github.event_name == 'push' && github.actor != 'dependabot[bot]' }}
124+ runs-on : ubuntu-latest
125+ needs :
126+ - commitlint
127+ - codelint
128+ - buildlint
129+ - test
130+ permissions :
131+ contents : write # to be able to publish a GitHub release
132+ issues : write # to be able to comment on released issues
133+ pull-requests : write # to be able to comment on released pull requests
134+ id-token : write # to enable use of OIDC for npm provenance
135+ steps :
136+ - name : Checkout
137+ uses : actions/checkout@v3
138+ with :
139+ fetch-depth : 0
140+ - name : Setup Node.js
141+ uses : actions/setup-node@v3
142+ with :
143+ node-version : " lts/*"
144+ cache : ' npm'
145+ - name : Install dependencies
146+ run : npm clean-install
147+ - name : Verify the integrity of provenance attestations and registry signatures for installed dependencies
148+ run : npm audit signatures
149+ - name : Release
150+ env :
151+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
152+ run : npx semantic-release
0 commit comments