Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 28 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,37 @@ jobs:
- name: Publish to npm with provenance
run: npm publish --provenance --tag latest

publish-github:
name: Publish to GitHub Packages
runs-on: ubuntu-24.04
needs: build
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Download build artifacts
uses: actions/download-artifact@v7
with:
name: build-artifacts

- name: Setup Node.js for GitHub Packages
uses: actions/setup-node@v6
with:
node-version: '24'
registry-url: 'https://npm.pkg.github.com'

- name: Publish to GitHub Packages
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

create-release:
name: Create GitHub Release
runs-on: ubuntu-24.04
needs: [build, publish-npm]
needs: [build, publish-npm, publish-github]
permissions:
contents: write
steps:
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
"build/smithy/cloudserverProxyBackbeatApis/typescript-codegen"
],
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org"
"access": "public"
},
"scripts": {
"clean:build": "rm -rf build dist",
Expand Down
Loading