-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #823 from cam-inc/develop
Release App 2.13.2
- Loading branch information
Showing
14 changed files
with
3,568 additions
and
480 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Publish NPM Package - Viron/lib | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
paths: | ||
- "packages/nodejs/**" | ||
|
||
jobs: | ||
build-and-publish: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [18.x] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: "npm" | ||
- name: Install dependencies and Build | ||
run: | | ||
echo "Installing packages..." | ||
npm ci | ||
npm run build -w packages/linter | ||
npm run build -w packages/nodejs | ||
- name: Set NPM_TOKEN | ||
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc | ||
- name: Publish | ||
run: | | ||
echo "Publishing..." | ||
npm publish -w packages/nodejs | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Publish NPM Package - Viron/linter | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
paths: | ||
- "packages/linter/**" | ||
|
||
jobs: | ||
build-and-publish: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [18.x] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: "npm" | ||
- name: Install dependencies and Build | ||
run: | | ||
echo "Installing packages..." | ||
npm ci | ||
npm run build -w packages/linter | ||
- name: Set NPM_TOKEN | ||
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc | ||
- name: Publish | ||
run: | | ||
echo "Publishing..." | ||
npm publish -w packages/linter | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
import AWS from 'aws-sdk'; | ||
import { S3 } from '@aws-sdk/client-s3'; | ||
|
||
import { ctx } from '../../context'; | ||
|
||
const AWSS3Config = ctx.config.aws.s3; | ||
|
||
export const s3Client = new AWS.S3({ | ||
accessKeyId: AWSS3Config.accessKeyId, | ||
secretAccessKey: AWSS3Config.secretAccessKey, | ||
export const s3Client = new S3({ | ||
credentials: { | ||
accessKeyId: AWSS3Config.accessKeyId, | ||
secretAccessKey: AWSS3Config.secretAccessKey, | ||
}, | ||
region: AWSS3Config.region, | ||
}); |
Oops, something went wrong.