Skip to content

Commit bbc18f7

Browse files
INFRA-3185: publishing 1.0.4 to GHA registry
1 parent 81922a7 commit bbc18f7

File tree

1 file changed

+12
-20
lines changed

1 file changed

+12
-20
lines changed

.github/workflows/build-publish.yml

+12-20
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,26 @@ permissions:
55
packages: write
66

77
on:
8-
pull_request_target:
9-
types:
10-
- closed
11-
branches:
12-
- master
8+
push:
9+
branches:
10+
- GHA-publish
11+
# pull_request_target:
12+
# types:
13+
# - closed
14+
# branches:
15+
# - master
1316

1417
jobs:
1518
build-publish:
1619
name: build publish artifact
1720
runs-on: ubuntu-latest
18-
if: github.event.pull_request.merged == true
21+
# if: github.event.pull_request.merged == true
1922
timeout-minutes: 20
2023
steps:
2124
- name: Checkout
2225
uses: actions/checkout@v4
2326
with:
24-
ref: master
27+
ref: GHA-publish
2528
fetch-depth: 0
2629
- name: Setup Node
2730
uses: actions/setup-node@v4
@@ -36,21 +39,10 @@ jobs:
3639
run: yarn install
3740
env:
3841
NODE_AUTH_TOKEN: ${{secrets.GH_PAT_CLASSIC_MACHINE_PARSABLE}}
39-
- name: Tag
40-
id: tag
41-
run: |
42-
truncated_version=1.0.4
43-
git config --global user.email "ops+machine-parsable@parsable.com"
44-
git config --global user.name "machine-parsable"
45-
npm version -m "Updating package.json for version ${truncated_version}" ${truncated_version}
46-
git pull --ff-only
47-
git push origin $(git branch --show-current) --tags
48-
git status
49-
echo "new_tag=${truncated_version}" >> $GITHUB_OUTPUT
5042
- name: Release
43+
run: gh release create "1.0.4"
5144
env:
52-
GITHUB_TOKEN: ${{ secrets.GH_PARSABLE_BOT_BYPASS }}
53-
run: gh release create "${{steps.version.outputs.version}}"
45+
GH_TOKEN: ${{ secrets.GH_PARSABLE_BOT_BYPASS }}
5446
- name: publishing artifact
5547
run: npm publish
5648
env:

0 commit comments

Comments
 (0)