Skip to content

Commit

Permalink
build: move code into src, add ncc build and test against Asana board (
Browse files Browse the repository at this point in the history
…#51)

* chore: remove node_modules
* build: add @vercel/ncc for packaging
* build: add .nvmrc
* build: move supporting js files into `src`
* build: add `build` step and package dist release
* build: switch to node16
* build: add husky pre-commit hook to run build
Co-authored-by: Federico Ponce de Leon <[email protected]>
  • Loading branch information
dooglio authored Sep 5, 2022
1 parent 6ae35db commit d58354c
Show file tree
Hide file tree
Showing 382 changed files with 36 additions and 75,119 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/asana-link.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Asana Github Link
uses: ExodusMovement/asana-actions@4.3.1
uses: ExodusMovement/asana-actions@2c2c03900dde51dfd047b22dae637fa17f42bf14
with:
asana_token: ${{ secrets.ASANA_TOKEN }}
workspace: ${{ secrets.ASANA_WORKSPACE_ID }}
Expand Down
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn build && git add dist/index.js
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16
5 changes: 3 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ branding:
icon: 'chevron-right'
color: 'gray-dark'
runs:
using: 'node12'
main: 'index.js'
using: 'node16'
main: 'dist/index.js'

7 changes: 7 additions & 0 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const core = require('@actions/core')
const github = require('@actions/github')
const asanaActionsWorkflow = require('./asana-actions-workflow')
const asanaActionsWorkflow = require('./src/asana-actions-workflow')

const run = async () => {
try {
Expand Down
454 changes: 0 additions & 454 deletions node_modules/.yarn-integrity

This file was deleted.

9 changes: 0 additions & 9 deletions node_modules/@actions/core/LICENSE.md

This file was deleted.

202 changes: 0 additions & 202 deletions node_modules/@actions/core/README.md

This file was deleted.

16 changes: 0 additions & 16 deletions node_modules/@actions/core/lib/command.d.ts

This file was deleted.

79 changes: 0 additions & 79 deletions node_modules/@actions/core/lib/command.js

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/@actions/core/lib/command.js.map

This file was deleted.

Loading

0 comments on commit d58354c

Please sign in to comment.