Skip to content

Commit

Permalink
fix(deploy): fix deployment script (#424)
Browse files Browse the repository at this point in the history
* fix(deploy): fix deployment script

* fix(sentry): move sentry minimal to deps
  • Loading branch information
pcholuj authored Mar 8, 2021
1 parent 30e0038 commit 89683cf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ jobs:
run: npm install
- name: Run tests
run: npm test
- name: Prepare docs
run: npm run docs
- name: Publish package to cdn
run: npm run publish:s3
env:
Expand All @@ -38,6 +36,8 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Update code cov report
run: npm run test:codecov
- name: Prepare docs
run: npm run docs
- name: Deploy docs
uses: crazy-max/ghaction-github-pages@v2
with:
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,14 @@
"lodash.clonedeep": "^4.5.0",
"p-queue": "^4.0.0",
"spark-md5": "^3.0.0",
"ts-node": "^8.10.2"
"ts-node": "^8.10.2",
"@sentry/minimal": "^6.2.1"
},
"devDependencies": {
"@babel/core": "^7.8.4",
"@babel/plugin-transform-runtime": "^7.8.3",
"@babel/preset-env": "^7.8.4",
"@purtuga/esm-webpack-plugin": "^1.2.1",
"@sentry/cli": "^1.49.0",
"@sentry/minimal": "^6.2.1",
"@types/jest": "^24.9.1",
"@types/mime": "^2.0.1",
"@types/node": "^12.6.2",
Expand Down
2 changes: 1 addition & 1 deletion scripts/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const pushOneFileToS3 = (basePath, to, cacheControll = 1) => {
Bucket: to.bucket,
Key: uploadKey,
Body: content,
CacheControl: `max-age=${cacheControllDays * 60 * 60 * 24}` || 'max-age=86400',
CacheControl: `max-age=${cacheControll * 60 * 60 * 24}` || 'max-age=86400',
ContentType: figureOutFileMimetype(basePath),
};

Expand Down

0 comments on commit 89683cf

Please sign in to comment.