Skip to content

Commit

Permalink
fix: github-action package not working (#2637)
Browse files Browse the repository at this point in the history
## Proposed change

<!--
Please include a summary of the changes and the related issue.
Please also include relevant motivation and context.
-->

## Related issues

<!--
Please make sure to follow the [contribution
guidelines](https://github.com/amadeus-digital/Otter/blob/main/CONTRIBUTING.md)
-->

*- No issue associated -*

<!-- * 🐛 Fix #issue -->
<!-- * 🐛 Fix resolves #issue -->
<!-- * 🚀 Feature #issue -->
<!-- * 🚀 Feature resolves #issue -->
<!-- * :octocat: Pull Request #issue -->
  • Loading branch information
fpaul-1A authored Dec 20, 2024
2 parents 0a97daf + 52e1c1c commit 88b7d37
Show file tree
Hide file tree
Showing 6 changed files with 188 additions and 198 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/code-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,18 @@ jobs:
env:
lintCmd: ${{ inputs.affected && format('lint:affected --base=remotes/origin/{0}', github.base_ref || github.ref_name) || 'lint'}}
run: yarn ${{ env.lintCmd }} --configuration ci

# Check that the packaging of github-actions is still working
github-actions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: ${{ inputs.affected && '0' || '1' }}
- name: Setup
uses: ./tools/github-actions/setup
- name: Package github actions
env:
nxCmd: ${{ inputs.affected && format('nx affected --base=remotes/origin/{0}', github.base_ref || github.ref_name) || 'nx run-many'}}
run: yarn ${{ env.nxCmd }} --target=package-github-action

4 changes: 3 additions & 1 deletion packages/@o3r/new-version/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,7 @@
"engines": {
"node": "^18.19.1 || ^20.11.1 || >=22.0.0"
},
"schematics": "./collection.json"
"schematics": "./collection.json",
"main": "./dist/src/public_api.js",
"typings": "./dist/src/public_api.d.ts"
}
2 changes: 1 addition & 1 deletion packages/@o3r/new-version/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"module": "commonjs",
"moduleResolution": "node",
"outDir": "./dist",
"rootDir": "src",
"rootDir": ".",
"tsBuildInfoFile": "./build/.tsbuildinfo"
},
"include": [
Expand Down
27 changes: 0 additions & 27 deletions tools/github-actions/new-version/packaged-action/LICENSE.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 88b7d37

Please sign in to comment.