Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add cd-release gha workflow #34

Merged
merged 2 commits into from
Feb 23, 2024
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
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
20 changes: 20 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": [
"@changesets/changelog-github",
{
"repo": "smartcontractkit/repo-name"
}
],
"commit": false,
"privatePackages": {
"version": true,
"tag": true
},
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
26 changes: 26 additions & 0 deletions .github/workflows/push-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,29 @@ jobs:
# sonarqube inputs
sonar-token: ${{ secrets.SONAR_TOKEN }}
sonar-host-url: ${{ secrets.SONAR_HOST_URL }}

cd-release:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
outputs:
changesets_published: ${{ steps.cd-release.outputs.published }}
changesets_publishedPackages: ${{ steps.cd-release.outputs.publishedPackages }}
steps:
- name: cd-release
id: cd-release
uses: smartcontractkit/.github/actions/cicd-changesets@c5b65fcfe12a5a14b60b03605748af0b0c6cfbea # [email protected]
with:
# general inputs
git-user: app-token-issuer-foundations[bot]
git-email: app-token-issuer-foundations[bot]@users.noreply.github.com
pnpm-use-cache: false
# aws inputs
aws-region: ${{ secrets.AWS_REGION }}
aws-role-arn: ${{ secrets.AWS_OIDC_CHAINLINK_DATA_STREAMS_CI_CHANGESET_TOKEN_ISSUER_ROLE_ARN }}
aws-lambda-url: ${{ secrets.AWS_FOUNDATIONS_GATI_URL }}
# grafana inputs
metrics-job-name: cd-release
gc-basic-auth: ${{ secrets.GRAFANA_CLOUD_BASIC_AUTH }}
gc-host: ${{ secrets.GRAFANA_CLOUD_HOST }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
coverage.txt
output.txt

node_modules
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
auto-install-peers=true
exclude-links-from-lockfile=true
2 changes: 2 additions & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
golang 1.21.4
protoc 23.2
golangci-lint 1.55.2 # keep in sync with .github/workflows/ci.yml
nodejs 20.11.0
9 changes: 9 additions & 0 deletions mercury/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "mercury",
"version": "0.1.0",
"description": "",
"private": true,
"main": "index.js",
"author": "",
"license": "UNLICENSED"
}
29 changes: 29 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "chainlink-data-streams",
"version": "0.1.0",
"description": "Chainlink data streams plugin",
"main": "index.js",
"private": true,
"scripts": {
"ci:changeset:publish": "pnpm changeset publish",
"ci:changeset:version": "pnpm changeset version && pnpm version patch --no-git-tag"
},
"repository": {
"type": "git",
"url": "git+ssh://[email protected]/smartcontractkit/chainlink-data-streams.git"
},
"author": "",
"license": "UNLICENSED",
"bugs": {
"url": "https://github.com/smartcontractkit/chainlink-data-streams/issues"
},
"homepage": "https://github.com/smartcontractkit/chainlink-data-streams#readme",
"dependencies": {
"mercury": "workspace:*"
},
"devDependencies": {
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "~2.26.2",
"semver": "^7.5.4"
}
}
Loading
Loading