Compare commits
9 Commits
jill/handl
...
ruetz-auto
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2722cfb5c8 | ||
|
|
0b5bf555f1 | ||
|
|
cca0f55ece | ||
|
|
baa29d5bd0 | ||
|
|
7ffac7f68a | ||
|
|
1b0b59a7a7 | ||
|
|
da98918135 | ||
|
|
e99f0139fe | ||
|
|
82b420f3b7 |
44
.github/workflows/release.yml
vendored
Normal file
44
.github/workflows/release.yml
vendored
Normal 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
|
||||
@@ -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
15
release.config.cjs
Normal 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",
|
||||
};
|
||||
Reference in New Issue
Block a user