Skip to content

Commit

Permalink
Merge pull request #244 from aws-actions/release-please-integration
Browse files Browse the repository at this point in the history
Integrated release-please to automate releases
  • Loading branch information
alikulka authored Jan 27, 2025
2 parents 119dcad + 7c4c0c4 commit 4cd2992
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/package-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,4 @@ jobs:
git add THIRD-PARTY
git commit -m "chore: update dist and licenses" || echo "No changes to commit"
git push --force origin
43 changes: 43 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
name: Release Please
on:
push:
branches:
- main

permissions:
id-token: write
contents: write
pull-requests: write

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-west-2
role-to-assume: ${{ secrets.SECRETS_AWS_PACKAGING_ROLE_TO_ASSUME }}
role-duration-seconds: 900
role-session-name: ${{ github.run_id }}

- name: Get git credentials
uses: aws-actions/aws-secretsmanager-get-secrets@v2
with:
parse-json-secrets: true
secret-ids: |
OSDS,arn:aws:secretsmanager:us-west-2:206735643321:secret:github-aws-sdk-osds-automation-gebs9n
- name: Run release-please
uses: googleapis/release-please-action@v4
with:
release-type: node
token: ${{ env.OSDS_ACCESS_TOKEN }}
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
5 changes: 5 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
".release-please-manifest.json": "6.0.0",
"package.json": "6.0.0",
".": "6.0.0"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stale-issue-cleanup",
"version": "1.0.0",
"version": "6.0.0",
"description": "GitHub Action that cleans up old and response-reqested issues",
"private": true,
"main": "dist/entrypoint.js",
Expand Down
13 changes: 13 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"packages": {
".": {
"changelog-path": "CHANGELOG.md",
"release-type": "node",
"bump-minor-pre-major": false,
"bump-patch-for-minor-pre-major": false,
"draft": false,
"prerelease": false
}
},
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
}
1 change: 1 addition & 0 deletions src/entrypoint.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Test comment in entrypoint.ts
import * as core from '@actions/core';
import * as github from '@actions/github';
import { closeIssue, getIssues, getTimelineEvents, hasEnoughUpvotes, markStale, removeLabel } from './github';
Expand Down

0 comments on commit 4cd2992

Please sign in to comment.