Skip to content

Commit

Permalink
feat: main Updated publish flow
Browse files Browse the repository at this point in the history
Signed-off-by: Fraser Benjamin <[email protected]>
  • Loading branch information
fraserbenjamin committed Apr 8, 2024
1 parent b9554a7 commit becaadf
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,21 @@ jobs:
issues: write
pull-requests: write
id-token: write
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
- uses: lego/mct-actions/actions/[email protected]
with:
github-repository-token: ${{ secrets.LEGO_GITHUB_PACKAGE_REGISTRY_TOKEN }}
- run: npm ci
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
- name: Publish Package
id: publish
uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
registry: https://npm.pkg.github.com
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sqs-consumer",
"version": "10.0.0-canary.3",
"name": "@lego/sqs-consumer",
"version": "1.0.0",
"description": "Build SQS-based Node applications without the boilerplate",
"type": "module",
"exports": {
Expand Down

0 comments on commit becaadf

Please sign in to comment.