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
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Publish Package to npmjs
on:
release:
types: [published]
workflow_dispatch:

jobs:
build:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,26 @@ jobs:
command: yarn

- name: Bump version
id: bump-version
run: |
gh auth status
gh auth setup-git
git config --global user.name "fragment-pr-bot[bot]"
git config --global user.email "228685+fragment-pr-bot[bot]@users.noreply.github.com"
echo "Creating NPM release ${{ inputs.type }}"
npm version ${{ inputs.type }}
yarn build
echo "version=$(npm pkg get version | tr -d '\"')"
echo "version=$(npm pkg get version | tr -d '\"')" >> $GITHUB_OUTPUT
env:
GH_TOKEN: ${{ steps.generate-token.outputs.token }}

- name: Create Pull Request
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 # v4
with:
token: ${{ steps.generate-token.outputs.token }}
title: Bump SDK version (${{ inputs.type }})
title: Bump SDK version (${{ steps.bump-version.outputs.version }})
branch: create-pull-request/${{ inputs.type }}-${{ steps.bump-version.outputs.version }}
base: 'dev'
body: >
This PR is auto-generated by github action.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"start-docs": "node scripts/hostDocs.js",
"gen-docs": "yarn typedoc --plugin typedoc-plugin-markdown --entryPointStrategy expand ./src --exclude ./src/bin.ts --exclude ./src/getToken.ts --entryPointStrategy expand ./generated/generated.ts",
"prepack": "yarn build",
"postversion": "yarn gen-version",
"fragment-node-client-codegen": "node --loader ts-node/esm --no-warnings=ExperimentalWarning src/bin.ts",
"prepublishOnly": "yarn build"
},
Expand Down