ecs-backend-commons
Provides common code for ECS backend, such as CDK constructs/stacks and lambda handlers.
Publishing new versions to NPM
This package is published publicly to the NPM registry for simplicity and does not contain any sensitive information.
By default a pre-release is created for each commit on master and published publicly to npm.
To create a new stable release:
- Update version in package.json
- Create Pull Request and merge to master
- Create a new GitHub release
To test what's being published to NPM, create a build and run npm publish --dry
.
GitHub Actions configuration and NPM
Publishing requires a NPM_TOKEN secret to be configured. This NPM_TOKEN secret is generated on a developer account. In case such an account is deleted (such as the developer leaving the company...), the token will need to be regenerated:
- Login on https://npmjs.com
- Go to https://www.npmjs.com/settings/replace_with_npm_username/tokens
- Generate a new token and copy the value
- Go to https://github.com/WoodWing/ecs-backend-commons/settings/secrets
- Update the NPM_TOKEN secret with the new value