Skip to content

Commit e830330

Browse files
GHA-publish: testing out 0.2.1
1 parent a4f4a27 commit e830330

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

.github/workflows/build-publish.yml

+9-14
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: build-publish
22
permissions:
33
contents: write
4-
id-token: read
4+
id-token: write
55
packages: write
66

77
on:
@@ -21,20 +21,15 @@ jobs:
2121
# if: github.event.pull_request.merged == true
2222
timeout-minutes: 20
2323
steps:
24-
- name: testing token
25-
run: |
26-
echo bot_token?: ${{ secrets.GH_PARSABLE_BOT_BYPASS == ''}}
27-
echo bot_token?: ${{ secrets.GH_PAT_CLASSIC_MACHINE_PARSABLE == ''}}
2824
- name: Checkout
2925
uses: actions/checkout@v4
3026
with:
31-
token: ${{ secrets.GH_PARSABLE_BOT_BYPASS }}
3227
ref: GHA-publish
3328
fetch-depth: 0
3429
- name: Setup Node
3530
uses: actions/setup-node@v4
3631
with:
37-
node-version: 18.x
32+
node-version: 16.x
3833
registry-url: https://npm.pkg.github.com/
3934
scope: '@parsable'
4035
cache: yarn
@@ -54,13 +49,13 @@ jobs:
5449
run: |
5550
truncated_version=$(echo ${{ steps.version.outputs.version }} | awk -F- '{print $1}')-test
5651
echo previous tag: ${{ steps.version.outputs.previous-version }} => new tag: ${truncated_version}
57-
# git config --global user.email "ops+machine-parsable@parsable.com"
58-
# git config --global user.name "machine-parsable"
59-
# npm version -m "Updating package.json for version ${truncated_version}" ${truncated_version}
60-
# git pull --ff-only
61-
# git push origin $(git branch --show-current) --tags
62-
# git status
63-
# echo "new_tag=${truncated_version}" >> $GITHUB_OUTPUT
52+
git config --global user.email "ops+machine-parsable@parsable.com"
53+
git config --global user.name "machine-parsable"
54+
npm version -m "Updating package.json for version ${truncated_version}" ${truncated_version}
55+
git pull --ff-only
56+
git push origin $(git branch --show-current) --tags
57+
git status
58+
echo "new_tag=${truncated_version}" >> $GITHUB_OUTPUT
6459
# - name: Release
6560
# env:
6661
# GITHUB_TOKEN: ${{ secrets.GH_PARSABLE_BOT_BYPASS }}

0 commit comments

Comments
 (0)