Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

strategy:
matrix:
node-version: [18, 20]
node-version: [22, 24]

steps:
- uses: actions/checkout@v4
Expand Down
16 changes: 4 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,11 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
- name: Set up Node.js with OIDC
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 24.x
registry-url: "https://registry.npmjs.org"
- name: Use npm 8
run: npm install -g npm@^8
- name: Test NPM login
run: npm whoami
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- uses: actions/setup-python@v3
with:
python-version: "3.8"
Expand All @@ -49,13 +43,11 @@ jobs:
role-to-assume: ${{ secrets.SAR_DEPLOYMENT_IAM_ROLE }}
role-session-name: github-action-sar-deploy-session
aws-region: ${{ env.AWS_REGION }}
- name: NPM publish
- name: NPM publish packages with OIDC
run: |
cp README.md serverless-plugin
[[ "${{ github.event.release.prerelease }}" = true ]] && export NPM_PUBLISH_ARGS="--tag next" || export NPM_PUBLISH_ARGS=""
npm publish ${NPM_PUBLISH_ARGS} --workspace slic-watch-core --workspace serverless-slic-watch-plugin
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
npm publish ${NPM_PUBLISH_ARGS} --provenance --workspace slic-watch-core --workspace serverless-slic-watch-plugin
- name: SAR publish
run: |
sam build --base-dir . --template-file cf-macro/template.yaml
Expand Down