Skip to content

Commit

Permalink
Merge branch 'stage' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
hemanth-3 authored Apr 19, 2024
2 parents 0b00262 + 6a6648a commit ece230c
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 3 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy_stage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: filestack-js-stage
on:
push:
branches: [ stage ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup repository env
uses: actions/setup-node@v1
with:
node-version: '14.x'
registry-url: "https://registry.npmjs.org"
- name: Install deps
run: npm install --ignore-scripts
- name: Run tests
run: npm test
- name: Prepare docs
run: npm run docs
- name: Publish package to cdn - stage version
run: npm run publish:s3:stage
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [3.30.2](https://github.com/filestack/filestack-js/compare/v3.30.2...v3.31.0) (2024-03-10)

### Updgrade
* **picker:** Upgraded picker to v1.27.0.

## [3.30.2](https://github.com/filestack/filestack-js/compare/v3.30.1...v3.30.2) (2024-03-04)

### Updgrade
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "filestack-js",
"version": "3.30.2",
"version": "3.31.0",
"description": "Official JavaScript library for Filestack",
"main": "build/main/index.js",
"module": "build/module/index.js",
Expand Down Expand Up @@ -31,6 +31,7 @@
"release": "standard-version",
"prepare": "npm run build",
"publish:s3:beta": "npm run build && node scripts/publish.js --beta",
"publish:s3:stage": "npm run build && node scripts/publish.js --stage",
"publish:s3": "node scripts/publish.js --current --latest",
"cache:clean": "node scripts/cache.js --current --latest",
"cache:clean:beta": "node scripts/cache.js --beta",
Expand Down
5 changes: 5 additions & 0 deletions scripts/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,10 @@ const purge = (bucket, path) => {
paths.push(`filestack-js/beta`)
}

if (args.indexOf('--stage') > -1) {
console.log(`clearing cache for stage version`);
paths.push(`filestack-js/stage`)
}

Promise.all(paths.map((p) => purge(bucket, p)), (res) => console.log(res))
})();
9 changes: 9 additions & 0 deletions scripts/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,5 +118,14 @@ const upload = async (bucket, path, cacheControll) => {
})
}

if (args.indexOf('--stage') > -1) {
console.log(`publish stage version`);
paths.push({
bucket,
path: `filestack-js/stage`,
cacheControll: 0
})
}

Promise.all(paths.map((data) => upload(data.bucket, data.path, data.cacheControll))).then((res) => console.log(res))
})();
3 changes: 2 additions & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
/**
* @private
*/
const PICKER_VERSION = 'beta';
const PICKER_VERSION = 'stage';

/**
* @private
*/
Expand Down
1 change: 1 addition & 0 deletions src/lib/utils/extensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export const ExtensionsMap = {
'mxd',
'indd',
'vsm',
'hpt',
],
'application/oda': ['oda'],
'application/oebps-package+xml': ['opf'],
Expand Down

0 comments on commit ece230c

Please sign in to comment.