Skip to content

Commit

Permalink
Merge branch 'main' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
rustin01 committed Oct 23, 2024
2 parents b77e975 + 733706b commit 9899d0c
Show file tree
Hide file tree
Showing 122 changed files with 5,582 additions and 1,104 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,19 @@ jobs:
node-version: 22
registry-url: https://npm.pkg.github.com
cache: yarn

- run: |
yarn install --frozen-lockfile
yarn build:sdk
- run: |
npm config set ${REGISTRY}:_authToken ${{ secrets.GITLAB_PACKAGE_TOKEN }}
npm config set @deland-labs:registry https:${REGISTRY}
npm config set @delandlabs:registry https:${REGISTRY}
env:
REGISTRY: //gitlab.com/api/v4/projects/37663507/packages/npm/
- run: |
if [ "${{ github.ref }}" = "refs/heads/main" ] || [ "${{ github.ref }}" = "refs/heads/release" ]; then
Version=1.0.0-alpha.$(date +"%Y%m%d%H%M%S")
Version=1.1.0-alpha.$(date +"%Y%m%d%H%M%S")
else
Version=$(git describe --tags --abbrev=0)
fi
echo Version: $Version
export VITE_RELEASE_VERSION=$Version
yarn install --frozen-lockfile
yarn build:sdk
yarn publish --frozen-lockfile --non-interactive --no-git-tag-version --no-commit-hooks --new-version ${Version} packages/sdk
30 changes: 30 additions & 0 deletions .github/workflows/npm-sdk-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: publish hibit-id-sdk package to npm
on:
release:
types: [ published ]
push:
branches:
- npm-release
jobs:
Build-and-Publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://npm.pkg.github.com
cache: yarn
- run: |
rm .npmrc
npm config set ${REGISTRY}:_authToken ${{ secrets.NPM_PACKAGE_TOKEN }}
npm config set @delandlabs:registry https:${REGISTRY}
env:
REGISTRY: //registry.npmjs.org/
- run: |
Version=$(git describe --tags --abbrev=0)
echo Version: $Version
export VITE_RELEASE_VERSION=$Version
yarn install --frozen-lockfile
yarn build:sdk
yarn publish --frozen-lockfile --non-interactive --no-git-tag-version --no-commit-hooks --new-version ${Version} packages/sdk --access public
8 changes: 4 additions & 4 deletions .github/workflows/prod-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: deploy mainnet website
on:
release:
types: [ published ]
push:
branches:
- 'release'
# push:
# branches:
# - 'release'

jobs:
deploy:
Expand All @@ -28,7 +28,7 @@ jobs:
scope: ${{ secrets.TEAM_ID_1 }}
# github-token: ${{ secrets.GITHUB_TOKEN }}
vercel-token: ${{ secrets.VERCEL_TOKEN_1 }} # Required
# vercel-args: '--prebuilt'
vercel-args: '--prod'
vercel-org-id: ${{ secrets.ORG_ID_1}} #Required
vercel-project-id: ${{ secrets.PROJECT_ID_1}} #Required
- name: Feishu Robot Message
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- main
- release
# pull_request event is required only for autolabeler
pull_request:
# Only following types are handled by the action, but one can default to all as well
types: [opened, reopened, synchronize]
# pull_request:
# # Only following types are handled by the action, but one can default to all as well
# types: [opened, reopened, synchronize]

permissions:
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@deland-labs:registry=https://gitlab.com/api/v4/projects/37663507/packages/npm/
@delandlabs:registry=https://gitlab.com/api/v4/projects/37663507/packages/npm/
Loading

0 comments on commit 9899d0c

Please sign in to comment.