Skip to content

Commit f32d3db

Browse files
--wip-- [skip ci]
1 parent 43ef801 commit f32d3db

File tree

1 file changed

+16
-25
lines changed

1 file changed

+16
-25
lines changed

.github/workflows/release.yml

Lines changed: 16 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: Release on tag
22

33
on:
4-
# !!! DON'T FORGET TO REMOVE THIS
5-
pull_request:
64
push:
75
tags:
86
- "v*"
@@ -59,27 +57,20 @@ jobs:
5957
name: arm-prebuilds
6058
path: packages/core/prebuilds
6159

62-
# !!!!! DEBUG DO NOT MERGE
63-
- name: Tmate Session
64-
if: always()
65-
uses: mxschmitt/action-tmate@v3
66-
timeout-minutes: 60
60+
- name: Publish the libraries
61+
run: |
62+
if [[ "${{ github.ref }}" == *"-alpha"* ]]; then
63+
pnpm publish -r --access=public --no-git-checks --tag=alpha
64+
else
65+
pnpm publish -r --access=public --no-git-checks
66+
fi
67+
env:
68+
NPM_CONFIG_PROVENANCE: true
69+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6770

68-
# !!! UNCOMMENT
69-
# - name: Publish the libraries
70-
# run: |
71-
# if [[ "${{ github.ref }}" == *"-alpha"* ]]; then
72-
# pnpm publish -r --access=public --no-git-checks --tag=alpha
73-
# else
74-
# pnpm publish -r --access=public --no-git-checks
75-
# fi
76-
# env:
77-
# NPM_CONFIG_PROVENANCE: true
78-
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
79-
#
80-
# - name: Create a draft release
81-
# run: |
82-
# NEW_VERSION=$(pnpm lerna list --json | jq -r '.[] | select(.name == "@codspeed/core") | .version')
83-
# gh release create v$NEW_VERSION --title "v$NEW_VERSION" --generate-notes -d
84-
# env:
85-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
71+
- name: Create a draft release
72+
run: |
73+
NEW_VERSION=$(pnpm lerna list --json | jq -r '.[] | select(.name == "@codspeed/core") | .version')
74+
gh release create v$NEW_VERSION --title "v$NEW_VERSION" --generate-notes -d
75+
env:
76+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)