Skip to content

Commit

Permalink
ci: update action
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustav-Eikaas committed Aug 11, 2023
1 parent cf36654 commit 34e7344
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 171 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,13 @@ jobs:
- name: Install Dependencies
run: npm i -g pnpm && pnpm i

# Run the action on the yarn-workspaces example
- name: Test Action
id: changedAction
uses: ./
with:
turbo-command: idk --since origin/main -- --token ${{ env.FUSION_TOKEN }}
- name: 'deploy'
shell: bash
run: npx turbo run idk --since origin/main -- --token ${{ env.FUSION_TOKEN }}

# # Run the action on the yarn-workspaces example
# - name: Test Action
# id: changedAction
# uses: ./
# with:
# turbo-command: idk --since origin/main -- --token ${{ env.FUSION_TOKEN }}
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ outputs:

runs:
using: 'node16'
main: 'github-action/script/main.js'
main: 'github-action/script/src/main.js'
42 changes: 0 additions & 42 deletions github-action/script/main.js

This file was deleted.

1 change: 1 addition & 0 deletions github-action/script/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const run = async () => {
const json = execSync(`npx turbo run ${turboCommand}`, {
cwd: cwd,
encoding: 'utf-8',
stdio: 'inherit',
});
}
catch (error) {
Expand Down
5 changes: 0 additions & 5 deletions github-action/script/src/parsePackageJson.js

This file was deleted.

116 changes: 0 additions & 116 deletions github-action/script/src/releasePr.js

This file was deleted.

1 change: 1 addition & 0 deletions github-action/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const run = async (): Promise<void> => {
const json = execSync(`npx turbo run ${turboCommand}`, {
cwd: cwd,
encoding: 'utf-8',
stdio: 'inherit',
});
} catch (error) {
if (error instanceof Error || typeof error === 'string') {
Expand Down
3 changes: 2 additions & 1 deletion github-action/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
"allowSyntheticDefaultImports": true,
"outDir": "script"
},
"exclude": ["node_modules"]
"exclude": ["node_modules"],
"include": ["./src/main.ts"]
}

0 comments on commit 34e7344

Please sign in to comment.