Compare commits

...

9 Commits

Author SHA1 Message Date
Dustin Ruetz
2722cfb5c8 feat(release.config.cjs): specify exported semantic-release object as GlobalConfig type
Some checks failed
Release / Release (push) Has been cancelled
Run acceptance tests / unit-tests (push) Has been cancelled
Run acceptance tests / test-with-output-secrets (connect, ubuntu-latest) (push) Has been cancelled
Run acceptance tests / test-with-output-secrets (service-account, macos-latest) (push) Has been cancelled
Run acceptance tests / test-with-output-secrets (service-account, ubuntu-latest) (push) Has been cancelled
Run acceptance tests / test-with-export-env (connect, ubuntu-latest) (push) Has been cancelled
Run acceptance tests / test-with-export-env (service-account, macos-latest) (push) Has been cancelled
Run acceptance tests / test-with-export-env (service-account, ubuntu-latest) (push) Has been cancelled
Run acceptance tests / test-references-with-ids (connect, ubuntu-latest) (push) Has been cancelled
Run acceptance tests / test-references-with-ids (service-account, macos-latest) (push) Has been cancelled
Run acceptance tests / test-references-with-ids (service-account, ubuntu-latest) (push) Has been cancelled
2024-04-04 21:17:49 -04:00
Dustin Ruetz
0b5bf555f1 fix: Git repo URL protocols (use SSH in package.json and HTTPS in release.config.cjs) 2024-04-04 21:16:10 -04:00
Dustin Ruetz
cca0f55ece docs: clarify code comments 2024-04-04 21:14:15 -04:00
Dustin Ruetz
baa29d5bd0 feat(release.config.cjs): initial configuration file for semantic-release 2024-04-04 16:34:09 -04:00
Dustin Ruetz
7ffac7f68a fix(package.json): switch 'repository.url' to HTTPS syntax 2024-04-04 16:28:41 -04:00
Dustin Ruetz
1b0b59a7a7 test: run release.yml workflow on push to this working branch 2024-04-03 18:36:21 -04:00
Dustin Ruetz
da98918135 test: run release.yml workflow on pull_request 2024-04-03 17:28:11 -04:00
Dustin Ruetz
e99f0139fe feat(.github/workflows): testing initial Release workflow file 2024-04-03 17:23:56 -04:00
Dustin Ruetz
82b420f3b7 fix(package.json): switch 'repository.url' to SSH syntax 2024-04-03 17:22:55 -04:00
3 changed files with 60 additions and 1 deletions

44
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,44 @@
name: Release
on:
push:
branches:
# TODO: This branch is for PR testing purposes; update branch to "main" if we proceed with this PR.
- ruetz-automate-releases
# Specify that this "Release" workflow depends on the other workflows below completing successfully.
workflow_run:
workflows: ["Lint", "Run acceptance tests"]
types:
- completed
permissions:
contents: read # for checkout
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "lts/*"
- name: Install dependencies
run: npm clean-install
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures
- name: Build codebase
run: npm run build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release

View File

@@ -24,7 +24,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/1Password/load-secrets-action.git"
"url": "git@github.com:1Password/load-secrets-action.git"
},
"keywords": [
"actions",

15
release.config.cjs Normal file
View File

@@ -0,0 +1,15 @@
/** @type {import('semantic-release').GlobalConfig} */
module.exports = {
// TODO: This branch is for PR testing purposes; update branch to "main" if we proceed with this PR.
branches: ["ruetz-automate-releases"],
// TODO: Remove `dryRun` configuration if we proceed with this PR.
dryRun: true,
plugins: [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github",
],
// Use the `https` Git protocol here to prevent semantic-release from erroring
// on the SSH protocol used in `repository.url` in the package.json file.
repositoryUrl: "https://github.com/1Password/load-secrets-action.git",
};