Skip to content

Commit

Permalink
try to fix mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
jgtvares committed Dec 26, 2021
1 parent d0d12f7 commit 32932cb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 27 deletions.
22 changes: 1 addition & 21 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: Node.js Package

on:
Expand Down Expand Up @@ -30,21 +27,4 @@ jobs:
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

publish-gpr:
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
13 changes: 7 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,19 @@ exports.build = async ({ files, entrypoint, config }) => {
if (setupPath) {
await apt.install(setupPath);
}

log.heading('Running apt script');
setupPath = apt.findPostRequirements(entrypoint, files);
if (setupPath) {
await apt.install(setupPath);
}

log.heading('Running pip script');
const requirementsTxtPath = pip.findRequirements(entrypoint, files);
if (requirementsTxtPath) {
await pip.install(pipPath, srcDir, '-r', requirementsTxtPath);
}

log.heading('Running post-setup script');
setupPath = apt.findPostRequirements(entrypoint, files);
if (setupPath) {
await apt.install(setupPath);
}

log.heading('Preparing lambda bundle');

const lambda = await createLambda({
Expand Down

0 comments on commit 32932cb

Please sign in to comment.