Skip to content

Commit 1aa29ae

Browse files
flochazChazalgithub-actions[bot]
authored
chore(cicd): fix publish (#336)
* Add release step * chore(cicd): Add package and github release * chore(cicd): set npm publish * test(cicd): Fix/release (#321) * fix(cicd): Fix/release (#323) * chore(cicd): fix release * v0.1.0-beta.7 * chore(cicd): fix scope * v0.1.0-beta.8 * fix test branch * fix(metrics): lib entrypoint * v0.1.0-beta.9 * fix release target branch * fix package-lock * reset versions for real release * fix missing deps * fix old ref to personal org * chore(cicd): fix publish flow * test bypass * fix workflow syntax * v0.1.0-beta.10 * revert merge and fix doc * back to main Co-authored-by: Chazal <[email protected]> Co-authored-by: flochaz <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent ced810a commit 1aa29ae

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

.github/workflows/on-docs-change.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ jobs:
2626
uses: actions/setup-node@v2
2727
with:
2828
node-version: '17.2'
29+
- name: "Setup npm"
30+
run: |
31+
npm set "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}"
2932
- name: Install dependencies
3033
run: |
3134
pip install --upgrade pip

.github/workflows/on-release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
- name: "Checkout"
1313
uses: actions/checkout@v2
1414
with:
15+
token: ${{ secrets.GH_PUBLISH_TOKEN }}
1516
fetch-depth: 0
1617

1718
- name: "Use NodeJS 14"
@@ -33,10 +34,11 @@ jobs:
3334
run: npm run lerna-test
3435
- name: "Version and publish"
3536
env:
36-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
GH_TOKEN: ${{ secrets.GH_PUBLISH_TOKEN }}
3738
run: |
38-
git config user.name "${{ github.actor }}"
39-
git config user.email "${{ github.actor}}@users.noreply.github.com"
39+
git config --global user.name 'github-actions[bot]'
40+
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
41+
git remote set-url origin https://x-access-token:${GH_TOKEN}@github.com/$GITHUB_REPOSITORY
4042
4143
if [ ${{ github.base_ref }} = main ]; then
4244
npx lerna version --conventional-commits --create-release github --yes

packages/commons/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Change Log
2+
3+
All notable changes to this project will be documented in this file.
4+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5+
6+
# [0.1.0-beta.10](https://github.com/awslabs/aws-lambda-powertools-typescript/compare/v0.1.0-beta.9...v0.1.0-beta.10) (2021-12-17)
7+
8+
**Note:** Version bump only for package @aws-lambda-powertools/commons

0 commit comments

Comments
 (0)