Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 33 additions & 37 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,50 +4,46 @@ on:
push:
branches: [main]

permissions:
contents: write # create GitHub releases and push tags
pull-requests: write # open and update release PRs
permissions: {}

concurrency:
group: release
cancel-in-progress: false

jobs:
release-stub:
name: Release Job Stub
release-please:
name: Release Please
runs-on: ubuntu-latest
permissions:
contents: write # create GitHub releases and push tags
pull-requests: write # open and update release PRs
outputs:
release_created: ${{ steps.release.outputs.release_created }}
steps:
- run: echo "Will be released soon!"
- uses: googleapis/release-please-action@d1a8f221d7723166f48a584aebba00ef3f6febec # v4.1.4
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}

# release-please:
# name: Release Please
# runs-on: ubuntu-latest
# outputs:
# release_created: ${{ steps.release.outputs.release_created }}
# steps:
# - uses: googleapis/release-please-action@d1a8f221d7723166f48a584aebba00ef3f6febec # v4.1.4
# id: release
# with:
# token: ${{ secrets.GITHUB_TOKEN }}

# publish:
# name: Publish to npm
# needs: release-please
# if: ${{ needs.release-please.outputs.release_created }}
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
# with:
# persist-credentials: false
# - uses: pnpm/action-setup@a15d269cd4658e1107c09f1fabf4cbd7bd1f308a # v4.4.0
# - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
# with:
# node-version: '24'
# registry-url: https://registry.npmjs.org
publish:
name: Publish to npm
needs: release-please
if: ${{ needs.release-please.outputs.release_created }}
runs-on: ubuntu-latest
permissions:
contents: read # checkout code
id-token: write # OIDC token for npm trusted publishing
steps:
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
with:
persist-credentials: false
- uses: pnpm/action-setup@a15d269cd4658e1107c09f1fabf4cbd7bd1f308a # v4.4.0
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '24'
registry-url: https://registry.npmjs.org

# - run: pnpm install --frozen-lockfile
# - run: pnpm test
# - run: pnpm build
# - run: pnpm publish --no-git-checks
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: pnpm install --frozen-lockfile
- run: pnpm test
- run: pnpm build
- run: pnpm publish --no-git-checks --provenance
2 changes: 1 addition & 1 deletion catalog-info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ metadata:
spec:
type: app
lifecycle: 'beta'
owner: hawkeye
owner: confidence
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@spotify/confidence-quickstart",
"name": "@spotify-confidence/quickstart",
"version": "0.0.0",
"description": "Get started with Confidence in minutes.",
"license": "Apache-2.0",
Expand Down Expand Up @@ -64,5 +64,9 @@
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/spotify/confidence-cli.git"
},
"packageManager": "pnpm@10.12.1"
}