Skip to content

Commit a3f15f6

Browse files
committed
update order of condition check for github action
1 parent fc10b1e commit a3f15f6

File tree

2 files changed

+36
-36
lines changed

2 files changed

+36
-36
lines changed

.github/workflows/semantic-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
# steps:
1919
# - uses: amannn/action-semantic-pull-request@v5
2020
# env:
21-
## GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/semantic.yml

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
1-
name: semantic
2-
on:
3-
push:
4-
branches:
5-
- main
6-
- next
1+
# name: semantic
2+
# on:
3+
# push:
4+
# branches:
5+
# - main
6+
# - next
77

8-
permissions:
9-
contents: read # for checkout
8+
# permissions:
9+
# contents: read # for checkout
1010

11-
jobs:
12-
release:
13-
name: release
14-
runs-on: ubuntu-latest
15-
permissions:
16-
contents: write # to be able to publish a GitHub release
17-
issues: write # to be able to comment on released issues
18-
pull-requests: write # to be able to comment on released pull requests
19-
id-token: write # to enable use of OIDC for npm provenance
20-
steps:
21-
- name: checkout
22-
uses: actions/checkout@v4
23-
with:
24-
fetch-depth: 0
25-
- name: setup node.js
26-
uses: actions/setup-node@v4
27-
with:
28-
node-version: "lts/*"
29-
- name: release
30-
env:
31-
GITHUB_TOKEN: ${{ secrets.SEMANTIC_GITHUB_TOKEN }}
32-
run: |
33-
npx \
34-
-p @semantic-release/commit-analyzer \
35-
-p @semantic-release/release-notes-generator \
36-
-p @semantic-release/github \
37-
semantic-release
11+
# jobs:
12+
# release:
13+
# name: release
14+
# runs-on: ubuntu-latest
15+
# permissions:
16+
# contents: write # to be able to publish a GitHub release
17+
# issues: write # to be able to comment on released issues
18+
# pull-requests: write # to be able to comment on released pull requests
19+
# id-token: write # to enable use of OIDC for npm provenance
20+
# steps:
21+
# - name: checkout
22+
# uses: actions/checkout@v4
23+
# with:
24+
# fetch-depth: 0
25+
# - name: setup node.js
26+
# uses: actions/setup-node@v4
27+
# with:
28+
# node-version: "lts/*"
29+
# - name: release
30+
# env:
31+
# GITHUB_TOKEN: ${{ secrets.SEMANTIC_GITHUB_TOKEN }}
32+
# run: |
33+
# npx \
34+
# -p @semantic-release/commit-analyzer \
35+
# -p @semantic-release/release-notes-generator \
36+
# -p @semantic-release/github \
37+
# semantic-release

0 commit comments

Comments
 (0)