Skip to content

Commit d0cad94

Browse files
committed
chore: enable package publishing for prerelease branches
1 parent f472239 commit d0cad94

2 files changed

Lines changed: 14 additions & 12 deletions

File tree

.github/workflows/publish.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ name: publish
66
on:
77
push:
88
branches:
9-
- main
109
- alpha
1110
- beta
12-
- chore/pipeline-test
11+
- main
1312

1413
jobs:
1514
build:
@@ -48,13 +47,13 @@ jobs:
4847
- name: Test
4948
run: yarn lint
5049

51-
# - name: Publish
52-
# run: npx semantic-release -r $GITHUB_SERVER_URL/$GITHUB_REPOSITORY
53-
# env:
54-
# NODE_AUTH_TOKEN: ${{secrets.npm_token}}
55-
# GITHUB_TOKEN: ${{secrets.gh_token}}
56-
# GIT_AUTHOR_NAME: "autocloud-deploy-bot"
57-
# GIT_AUTHOR_EMAIL: "no-reply@autocloud.dev"
58-
# GIT_COMMITTER_NAME: "autocloud-deploy-bot"
59-
# GIT_COMMITTER_EMAIL: "no-reply@autocloud.dev"
60-
# NODE_ENV: "cicd"
50+
- name: Publish
51+
run: npx semantic-release -r $GITHUB_SERVER_URL/$GITHUB_REPOSITORY
52+
env:
53+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
54+
GITHUB_TOKEN: ${{secrets.gh_token}}
55+
GIT_AUTHOR_NAME: "autocloud-deploy-bot"
56+
GIT_AUTHOR_EMAIL: "no-reply@autocloud.dev"
57+
GIT_COMMITTER_NAME: "autocloud-deploy-bot"
58+
GIT_COMMITTER_EMAIL: "no-reply@autocloud.dev"
59+
NODE_ENV: "cicd"

.releaserc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
---
22
branches:
3+
- name: alpha
4+
- name: beta
35
- name: main
6+
47
plugins:
58
- "@semantic-release/commit-analyzer"
69
- "@semantic-release/release-notes-generator"

0 commit comments

Comments
 (0)