-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4302 from janhq/dev
Release cut 0.5.12
- Loading branch information
Showing
163 changed files
with
8,924 additions
and
7,949 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Publish plugin models Package to npmjs | ||
on: | ||
push: | ||
tags: ["v[0-9]+.[0-9]+.[0-9]+-core"] | ||
paths: ["core/**"] | ||
pull_request: | ||
paths: ["core/**"] | ||
jobs: | ||
build-and-publish-plugins: | ||
environment: production | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: "0" | ||
token: ${{ secrets.PAT_SERVICE_ACCOUNT }} | ||
|
||
- name: Install jq | ||
uses: dcarbone/install-jq-action@v2.0.1 | ||
|
||
- name: Extract tag name without v prefix | ||
id: get_version | ||
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV && echo "::set-output name=version::${GITHUB_REF#refs/tags/v}" | ||
env: | ||
GITHUB_REF: ${{ github.ref }} | ||
|
||
- name: "Get Semantic Version from tag" | ||
if: github.event_name == 'push' | ||
run: | | ||
# Get the tag from the event | ||
tag=${GITHUB_REF#refs/tags/v} | ||
# remove the -core suffix | ||
new_version=$(echo $tag | sed -n 's/-core//p') | ||
echo $new_version | ||
# Replace the old version with the new version in package.json | ||
jq --arg version "$new_version" '.version = $version' core/package.json > /tmp/package.json && mv /tmp/package.json core/package.json | ||
# Print the new version | ||
echo "Updated package.json version to: $new_version" | ||
cat core/package.json | ||
# Setup .npmrc file to publish to npm | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: "20.x" | ||
registry-url: "https://registry.npmjs.org" | ||
|
||
- run: cd core && yarn install && yarn build | ||
|
||
- run: cd core && yarn publish --access public | ||
if: github.event_name == 'push' | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Publish plugin models Package to npmjs | ||
on: | ||
push: | ||
tags: ["v[0-9]+.[0-9]+.[0-9]+-joi"] | ||
paths: ["joi/**"] | ||
pull_request: | ||
paths: ["joi/**"] | ||
jobs: | ||
build-and-publish-plugins: | ||
environment: production | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: "0" | ||
token: ${{ secrets.PAT_SERVICE_ACCOUNT }} | ||
|
||
- name: Install jq | ||
uses: dcarbone/install-jq-action@v2.0.1 | ||
|
||
- name: Extract tag name without v prefix | ||
id: get_version | ||
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV && echo "::set-output name=version::${GITHUB_REF#refs/tags/v}" | ||
env: | ||
GITHUB_REF: ${{ github.ref }} | ||
|
||
- name: "Get Semantic Version from tag" | ||
if: github.event_name == 'push' | ||
run: | | ||
# Get the tag from the event | ||
tag=${GITHUB_REF#refs/tags/v} | ||
# remove the -joi suffix | ||
new_version=$(echo $tag | sed -n 's/-joi//p') | ||
echo $new_version | ||
# Replace the old version with the new version in package.json | ||
jq --arg version "$new_version" '.version = $version' joi/package.json > /tmp/package.json && mv /tmp/package.json joi/package.json | ||
# Print the new version | ||
echo "Updated package.json version to: $new_version" | ||
cat joi/package.json | ||
# Setup .npmrc file to publish to npm | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: "20.x" | ||
registry-url: "https://registry.npmjs.org" | ||
|
||
- run: cd joi && yarn install && yarn build | ||
|
||
- run: cd joi && yarn publish --access public | ||
if: github.event_name == 'push' | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.