name: Release on: workflow_dispatch: # manually inputs: dry_run: description: Skip publishing required: false default: true type: boolean jobs: release: name: Release runs-on: group: npm-deploy environment: name: release permissions: id-token: write contents: write steps: - uses: bullfrogsec/bullfrog@dcde5841b19b7ef693224207a7fdec67fce604db # v0.8.3 - name: Checkout uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1 with: fetch-depth: 0 - name: Setup Node.js uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2 with: node-version: 16 - name: Install dependencies run: yarn --frozen-lockfile - name: Lint run: yarn lint if: success() - name: Test run: yarn test if: success() - name: Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: yarn release --dry-run=${{ inputs.dry_run }} if: success()