-
Notifications
You must be signed in to change notification settings - Fork 24
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 #101 from voxeet/release/3.1.0
Release - 3.1.0
- Loading branch information
Showing
39 changed files
with
1,809 additions
and
700 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,61 @@ | ||
name: Snapshot build and publish | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'develop' | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: rlespinasse/github-slug-action@v3.x | ||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
|
||
- id: codeartifact_login | ||
name: Login to CodeArtifact | ||
run: | | ||
CODEARTIFACT_TOKEN=$(/usr/local/bin/aws codeartifact get-authorization-token --duration-seconds 900 --domain ${{ secrets.CODEARTIFACT_DOMAIN }} --domain-owner ${{ secrets.CODEARTIFACT_DOMAIN_OWNER }} --region ${{ secrets.AWS_REGION }} --output text --query authorizationToken) | ||
echo "::add-mask::$CODEARTIFACT_TOKEN" | ||
echo "CODEARTIFACT_TOKEN=$CODEARTIFACT_TOKEN" >> $GITHUB_ENV | ||
- name: setting nodejs | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
registry-url: ${{ secrets.CODEARTIFACT_NPM_RELEASES_REPOSITORY_URL }} | ||
always-auth: true | ||
|
||
- name: install dependencies | ||
run: | | ||
yarn install | ||
env: | ||
NODE_AUTH_TOKEN: ${{ env.CODEARTIFACT_TOKEN }} | ||
|
||
- name: setting nodejs | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
registry-url: ${{ secrets.CODEARTIFACT_NPM_SNAPSHOTS_REPOSITORY_URL }} | ||
always-auth: true | ||
|
||
- name: build and publish | ||
run: | | ||
npm --no-git-tag-version version $(npm run --silent get-version)-$GITHUB_SHA | ||
yarn publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ env.CODEARTIFACT_TOKEN }} | ||
|
||
- name: create NPM tag for develop version | ||
run: | | ||
npm dist-tag add @voxeet/react-components@$(npm run --silent get-version) ${{ env.GITHUB_REF_SLUG }} | ||
env: | ||
NODE_AUTH_TOKEN: ${{ env.CODEARTIFACT_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,47 @@ | ||
name: Snapshot build | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- 'develop' | ||
- 'master' | ||
- 'release-**' | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: rlespinasse/github-slug-action@v3.x | ||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
|
||
- id: codeartifact_login | ||
name: Login to CodeArtifact | ||
run: | | ||
CODEARTIFACT_TOKEN=$(/usr/local/bin/aws codeartifact get-authorization-token --duration-seconds 900 --domain ${{ secrets.CODEARTIFACT_DOMAIN }} --domain-owner ${{ secrets.CODEARTIFACT_DOMAIN_OWNER }} --region ${{ secrets.AWS_REGION }} --output text --query authorizationToken) | ||
echo "::add-mask::$CODEARTIFACT_TOKEN" | ||
echo "CODEARTIFACT_TOKEN=$CODEARTIFACT_TOKEN" >> $GITHUB_ENV | ||
- name: setting nodejs | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
registry-url: ${{ secrets.CODEARTIFACT_NPM_RELEASES_REPOSITORY_URL }} | ||
always-auth: true | ||
|
||
- name: install dependencies | ||
run: | | ||
yarn install | ||
env: | ||
NODE_AUTH_TOKEN: ${{ env.CODEARTIFACT_TOKEN }} | ||
|
||
- name: build | ||
run: | | ||
npm run build |
This file was deleted.
Oops, something went wrong.
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,4 +1,5 @@ | ||
.DS_Store | ||
*.swp | ||
node_modules/ | ||
dist/ | ||
dist/ | ||
.idea |
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
Oops, something went wrong.