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
39 changes: 0 additions & 39 deletions .github/workflows/deploy-beta.yml

This file was deleted.

48 changes: 40 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
name: Deploy
name: Deploy Package
on:
push:
branches: [main]
tags: ["v*"]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-deploy
cancel-in-progress: false
jobs:
deploy-package-next:
deploy-package:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # Required for OIDC authentication with npm
env:
DOCKER_IMAGE: package
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- name: Check out the repo
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
# NOTE(krishan711): need full history to calculate difference
fetch-depth: 0
Expand All @@ -31,8 +34,37 @@ jobs:
- name: Calculate commit count since last tag
id: vars
run: echo ::set-output name=commit_count::$(git rev-list $(git describe --tags --abbrev=0)..HEAD --count)
Copy link

Copilot AI Jan 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The set-output command using ::set-output syntax is deprecated and will be disabled in future GitHub Actions runners. This should be updated to use the modern syntax by writing to the $GITHUB_OUTPUT environment file instead.

Suggested change
run: echo ::set-output name=commit_count::$(git rev-list $(git describe --tags --abbrev=0)..HEAD --count)
run: |
echo "commit_count=$(git rev-list $(git describe --tags --abbrev=0)..HEAD --count)" >> "$GITHUB_OUTPUT"

Copilot uses AI. Check for mistakes.
- name: Create .npmrc file
run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
- name: Extract built package from Docker
run: |
docker create --name temp-container $DOCKER_IMAGE
docker cp temp-container:/app/. ./
docker rm temp-container
Comment on lines +37 to +41
Copy link

Copilot AI Jan 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Docker container extraction may overwrite files in the current directory (including the .git directory and workflow files) which could cause unexpected behavior. Consider extracting to a specific subdirectory or only copying the specific built package files needed for publishing.

Copilot uses AI. Check for mistakes.
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
- name: Update npm to latest
run: npm install -g npm@latest
- name: Publish next package to npm
if: steps.vars.outputs.commit_count != '0'
run: docker run -v $(pwd)/.npmrc:/root/.npmrc $DOCKER_IMAGE make NEXT_VERSION=${{ steps.vars.outputs.commit_count }} publish-next
if: steps.vars.outputs.commit_count != '0' && github.ref == 'refs/heads/main'
run: npx kiba-publish --next --next-version ${{ steps.vars.outputs.commit_count }}
Comment on lines 49 to +51
Copy link

Copilot AI Jan 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The npx kiba-publish command likely requires npm authentication to publish packages. Similar to the standard npm publish command, this step needs the NODE_AUTH_TOKEN environment variable to be set for authentication with the npm registry.

Copilot uses AI. Check for mistakes.
- name: Publish package to npm
if: startsWith(github.ref, 'refs/tags/v')
run: npm publish
Comment on lines +52 to +54
Copy link

Copilot AI Jan 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The npm publish command requires authentication to publish to npm registry. While OIDC authentication permissions are set (id-token: write) and registry-url is configured in setup-node, the NODE_AUTH_TOKEN environment variable is not being set. This environment variable needs to be provided to authenticate with npm when using npm publish.

Copilot uses AI. Check for mistakes.
create-release:
needs: deploy-package
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create ${{ github.ref_name }} \
--title "Release ${{ github.ref_name }}" \
--generate-notes
41 changes: 0 additions & 41 deletions .github/workflows/release.yml

This file was deleted.

Loading