Skip to content
Merged
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
20 changes: 2 additions & 18 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,10 @@ on:
push:
branches:
- main
workflow_dispatch:
inputs:
tag_name:
description: Existing release tag to publish artifacts for
required: true
type: string
ref:
description: Git ref to build, defaults to tag_name
required: false
type: string

jobs:
release-please:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' }}
permissions:
contents: write
pull-requests: write
Expand All @@ -37,16 +26,14 @@ jobs:
name: Build and publish release artifacts
runs-on: ubuntu-latest
needs: release-please
if: ${{ always() && (github.event_name == 'workflow_dispatch' || needs.release-please.outputs.release_created == 'true') }}
if: ${{ needs.release-please.outputs.release_created == 'true' }}
permissions:
artifact-metadata: write
attestations: write
contents: write
id-token: write
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
ref: ${{ inputs.ref || inputs.tag_name || github.ref }}

- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
Expand Down Expand Up @@ -89,12 +76,9 @@ jobs:
- name: Upload release assets
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_TAG: ${{ inputs.tag_name || needs.release-please.outputs.tag_name }}
run: |
gh release upload "$RELEASE_TAG" dist/altertable-darwin-* dist/altertable-linux-* dist/altertable-cli.js dist/checksums.txt --clobber
gh release upload "${{ needs.release-please.outputs.tag_name }}" dist/altertable-darwin-* dist/altertable-linux-* dist/altertable-cli.js dist/checksums.txt --clobber

- name: Publish npm package
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish --provenance --access public
working-directory: cli
1 change: 0 additions & 1 deletion release-please-config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"release-as": "1.0.0",
"include-component-in-tag": false,
"packages": {
".": {
Expand Down
Loading