Skip to content

Commit ec9d780

Browse files
committed
Merge remote-tracking branch 'upstream/main'
# Conflicts: # dist/index.js
2 parents 2919431 + 355b7af commit ec9d780

File tree

6 files changed

+44056
-43401
lines changed

6 files changed

+44056
-43401
lines changed

.github/workflows/publish.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish
2+
3+
on:
4+
release:
5+
types: [published, edited]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v3
13+
with:
14+
ref: ${{ github.event.release.tag_name }}
15+
- name: Use node.js 16.x
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: 16
19+
- name: NPM Install
20+
run: npm ci
21+
- name: Check Format
22+
run: npm run format:check
23+
- name: Lint
24+
run: npm run lint
25+
- name: Test
26+
run: npm run test
27+
- uses: JasonEtco/build-and-tag-action@v2
28+
env:
29+
GITHUB_TOKEN: ${{ github.token }}
30+
with:
31+
tag_name: ${{ github.event.release.tag_name }}

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ Otherwise, it fails.
248248
249249
In the call to StartBuild, we pass in all
250250
`GITHUB_` [environment variables][github environment variables] in the GitHub Actions environment,
251-
plus any environment variables that you specified in the `evn-passthrough` input value.
251+
plus any environment variables that you specified in the `env-passthrough` input value.
252252
253253
By default, regardless of the project configuration in CodeBuild or GitHub Actions,
254254
we always pass the following parameters and values to CodeBuild in the StartBuild API call.
@@ -280,6 +280,12 @@ For this reason, and to simplify what we expect to be the most common use-cases,
280280
we chose to start with the simplest possible configuration.
281281
If you find that these options don't meet your needs, please open an issue to let us know.
282282
283+
## Release Process
284+
285+
By creating a new Release a workflow is triggered creating a new commit which only contains `dist` and the `action.yml`. The necessary tags, i.e. for the release v1.0.7, the tag v1.0.7 is created and the v1.0 and v1 tags are updated.
286+
287+
For the tagging and building the [build-and-tag](https://github.com/JasonEtco/build-and-tag-action) action by [Jason Etcovitch](https://github.com/JasonEtco) is used. It expects to have the main attribute and a build script to be set in the `package.json`. It then builds the code with the ncc compiler and creates the new tag/ updates existing tags for minor and major versions automatically.
288+
283289
## License
284290
285291
This SDK is distributed under the

dist/index.js

Lines changed: 43969 additions & 43352 deletions
Large diffs are not rendered by default.

local.js

100755100644
File mode changed.

package-lock.json

Lines changed: 45 additions & 46 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
"name": "@aws-actions/codebuild-run-build",
33
"version": "1.0.4",
44
"description": "Execute CodeBuild::startBuild for the current repo.",
5-
"main": "index.js",
5+
"main": "dist/index.js",
66
"scripts": {
77
"lint": "prettier -c *.js *.json *.md test/*.js; eslint **.js test/**.js",
88
"format": "prettier --write -c *.js *.json *.md test/*.js; eslint --fix **.js test/**.js",
9+
"format:check": "prettier --check -c *.js *.json *.md test/*.js; eslint --fix **.js test/**.js",
910
"package": "ncc build index.js -o dist",
11+
"build": "ncc build index.js -o dist",
1012
"test": "mocha"
1113
},
1214
"author": "aws-crypto-tools-team@amazon.com",
@@ -24,7 +26,7 @@
2426
"*.js"
2527
],
2628
"devDependencies": {
27-
"@zeit/ncc": "^0.21.1",
29+
"@vercel/ncc": "^0.36.1",
2830
"chai": "^4.2.0",
2931
"eslint": "^6.8.0",
3032
"eslint-config-prettier": "^6.10.1",

0 commit comments

Comments
 (0)