forked from ferdikoomen/openapi-typescript-codegen
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
93 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: npm | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
day: "sunday" | ||
time: "09:00" | ||
timezone: "America/Los_Angeles" | ||
ignore: | ||
- dependency-name: "*" | ||
update-types: [version-update:semver-major] | ||
open-pull-requests-limit: 5 | ||
commit-message: | ||
prefix: "bot: update npm dependencies: " | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
day: "sunday" | ||
time: "09:00" | ||
timezone: "America/Los_Angeles" | ||
open-pull-requests-limit: 10 | ||
commit-message: | ||
prefix: "[no-jira] bot: update github-actions image to " | ||
|
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,66 @@ | ||
name: build-publish | ||
permissions: | ||
contents: write | ||
id-token: write | ||
packages: write | ||
|
||
on: | ||
push: | ||
branches: | ||
- GHA-publish | ||
# pull_request_target: | ||
# types: | ||
# - closed | ||
# branches: | ||
# - main | ||
|
||
jobs: | ||
build-publish: | ||
name: build publish artifact | ||
runs-on: ubuntu-latest | ||
# if: github.event.pull_request.merged == true | ||
timeout-minutes: 20 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: GHA-publish | ||
fetch-depth: 0 | ||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18.x | ||
registry-url: https://npm.pkg.github.com/ | ||
scope: '@parsable' | ||
cache: yarn | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.GH_PAT_CLASSIC_MACHINE_PARSABLE}} | ||
- name: Install Dependencies | ||
run: yarn install | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.GH_PAT_CLASSIC_MACHINE_PARSABLE}} | ||
- name: Git Version | ||
id: version | ||
uses: codacy/[email protected] | ||
with: | ||
release-branch: GHA-publish | ||
- name: Tag | ||
id: tag | ||
run: | | ||
truncated_version=$(echo ${{ steps.version.outputs.version }} | awk -F- '{print $1}')-test | ||
echo previous tag: ${{ steps.version.outputs.previous-version }} => new tag: ${truncated_version} | ||
# git config --global user.email "[email protected]" | ||
# git config --global user.name "machine-parsable" | ||
# npm version -m "Updating package.json for version ${truncated_version}" ${truncated_version} | ||
# git pull --ff-only | ||
# git push origin $(git branch --show-current) --tags | ||
# git status | ||
# echo "new_tag=${truncated_version}" >> $GITHUB_OUTPUT | ||
# - name: Release | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GH_PARSABLE_BOT_BYPASS }} | ||
# run: gh release create "${{steps.version.outputs.version}}" | ||
# - name: publishing artifact | ||
# run: npm publish | ||
# env: | ||
# NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} |