Skip to content

Commit 263d074

Browse files
committed
use a pre- string so deno doesn’t pick it up
1 parent ae0144c commit 263d074

3 files changed

Lines changed: 8 additions & 17 deletions

File tree

.github/workflows/cd.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,8 @@ jobs:
1818
if: ${{ github.event.release.prerelease }}
1919
uses: ./.github/workflows/ci.yml
2020

21-
strip:
22-
runs-on: ubuntu-latest
23-
outputs:
24-
v: ${{ steps.strip.outputs.v }}
25-
steps:
26-
- name: strip prerelease component
27-
run: echo "v=${V%%-rc}" >> $GITHUB_OUTPUT
28-
id: strip
29-
env:
30-
V: ${{ github.event.release.tag_name }}
31-
3221
dnt:
33-
needs: [check, strip]
22+
needs: [check]
3423
runs-on: ${{ matrix.os }}
3524
strategy:
3625
fail-fast: false
@@ -44,7 +33,7 @@ jobs:
4433
steps:
4534
- uses: actions/checkout@v3
4635
- uses: teaxyz/setup@v0
47-
- run: deno task dnt ${{ needs.strip.outputs.v }}
36+
- run: deno task dnt ${{ github.event.release.name }}
4837

4938
- uses: actions/upload-artifact@v3
5039
if: ${{ matrix.os == 'ubuntu-latest' }}
@@ -68,7 +57,7 @@ jobs:
6857
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6958

7059
publish:
71-
needs: [publish-npm, strip]
60+
needs: [publish-npm]
7261
permissions:
7362
contents: write
7463
runs-on: ubuntu-latest
@@ -80,7 +69,7 @@ jobs:
8069
curl -fX PATCH \
8170
-H "Authorization: Bearer ${{ github.token }}" \
8271
-H "Accept: application/vnd.github.v3+json" \
83-
-d '{"draft": false, "prerelease": false, "make_latest": true, "tag_name": "${{ needs.strip.outputs.v }}"}' \
72+
-d '{"draft": false, "prerelease": false, "make_latest": true, "tag_name": "${{ github.event.release.name }}"}' \
8473
"https://api.github.com/repos/${{ github.repository }}/releases/${{ github.event.release.id }}"
8574
8675
# delete pre-release tag

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
workflow_call:
1111

1212
concurrency:
13-
group: ${{ github.ref }}
13+
group: ${{ github.ref || github.event.release.name }}
1414
cancel-in-progress: true
1515

1616
jobs:

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,5 +253,7 @@ V=$(git describe --tags --abbrev=0 --match "v[0-9]*.[0-9]*.[0-9]*")
253253
V=$(tea semverator bump $V $LEVEL)
254254

255255
git push origin main
256-
tea gh release create "v$V"-rc --prerelease --generate-notes --title "v$V"
256+
257+
# not tagging with a version because deno.land will immutably publish it :/
258+
tea gh release create prerelease --prerelease --generate-notes --title "v$V"
257259
```

0 commit comments

Comments
 (0)