Skip to content

Commit

Permalink
ci: port release workflow github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
paring-chan committed Mar 18, 2024
1 parent 335209f commit ae0e0d2
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 192 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release

on:
push:
branches:
- "master"
- "next"

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@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- run: corepack enable
- name: Install dependencies
run: pnpm i
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: pnpm audit signatures
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: pnpm semantic-release
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
engine-strict=true


@adofai-gg:registry=https://git.adofai.gg/api/v4/packages/npm/
@adofai-gg:registry=https://npm.pkg.github.com/
12 changes: 0 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"svelte": "^4.0.0"
},
"devDependencies": {
"@semantic-release/gitlab": "^13.0.3",
"@storybook/addon-essentials": "^8.0.0",
"@storybook/addon-interactions": "^8.0.0",
"@storybook/addon-links": "^8.0.0",
Expand Down Expand Up @@ -94,17 +93,6 @@
"name": "alpha",
"prerelease": true
}
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/npm",
[
"@semantic-release/gitlab",
{
"gitlabUrl": "https://git.adofai.gg"
}
]
]
}
}
Loading

0 comments on commit ae0e0d2

Please sign in to comment.