Skip to content

Commit

Permalink
Add ts-node
Browse files Browse the repository at this point in the history
It's required for tests.
  • Loading branch information
j0k3r committed Aug 20, 2024
1 parent 9e7d966 commit 3616d29
Show file tree
Hide file tree
Showing 3 changed files with 190 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,24 @@ jobs:
publish-npm:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: "Checkout"
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: "Install Node.js"
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm test
- run: npm publish

- name: "Install dependencies"
run: npm ci

- name: "Run tests"
run: "npm run test"

- name: "Publish package"
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
173 changes: 173 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"prettier": "^3.3.3",
"serverless": "^3.38.0",
"sinon": "^18.0.0",
"ts-node": "^10.9.2",
"unzipper": "^0.12.3",
"webpack": "^5.93.0"
},
Expand Down

0 comments on commit 3616d29

Please sign in to comment.