Skip to content

refactor: enable and fix no-underscore-dangle (#6254) #3468

refactor: enable and fix no-underscore-dangle (#6254)

refactor: enable and fix no-underscore-dangle (#6254) #3468

name: release-please
on:
push:
branches:
- main
jobs:
create-release:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
steps:
- uses: navikt/github-app-token-generator@a3831f44404199df32d8f39f7c0ad9bb8fa18b1c
id: get-token
with:
private-key: ${{ secrets.TOKENS_PRIVATE_KEY }}
app-id: ${{ secrets.TOKENS_APP_ID }}
- uses: GoogleCloudPlatform/release-please-action@v3
id: release
with:
token: ${{ steps.get-token.outputs.token }}
release-type: node
package-name: netlify-cli
publish:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
pull-requests: write
needs: create-release
if: ${{ needs.create-release.outputs.release_created }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: lts/*
cache: npm
registry-url: 'https://registry.npmjs.org'
- name: Install core dependencies
run: npm ci --no-audit
- run: npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}