Skip to content

Commit

Permalink
ci: test beta
Browse files Browse the repository at this point in the history
  • Loading branch information
msclock committed Mar 21, 2024
1 parent 198a899 commit 77f443e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,26 @@ jobs:
permissions:
contents: write # to be able to publish a GitHub release
id-token: write # to enable use of OIDC for npm provenance
issues: write
pull-requests: write
# needs: [pass]

steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
token: ${{ github.token }}
token: ${{ secrets.GITHUB_TOKEN }}

- name: List local git tags
run: git tag -l

- name: Pull remote tags
run: git fetch --tags

- run: git tag -l

- run: cat .releaserc.js

- uses: actions/setup-node@v4
with:
Expand All @@ -132,6 +144,6 @@ jobs:
npm install -g semantic-release@22 @semantic-release/git @semantic-release/exec @semantic-release/github conventional-changelog-conventionalcommits
- name: Release
run: npx semantic-release
run: npx semantic-release --debug
env:
GITHUB_TOKEN: ${{ github.token }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
11 changes: 2 additions & 9 deletions .releaserc.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
module.exports = {
branches: [
{ name: 'beta', prerelease: true,channels: ['beta'] },
{ name: 'alpha', prerelease: true },
'+([0-9])?(.{+([0-9]),x}).x',
'main',
'master',
'next',
'next-major',
{
name: 'beta',
prerelease: true
},
{
name: 'alpha',
prerelease: true
}
],
dryRun: false,
plugins: [
Expand Down

0 comments on commit 77f443e

Please sign in to comment.