Skip to content

Commit 12c3a97

Browse files
committed
Publish
1 parent 0f4d9cf commit 12c3a97

File tree

5 files changed

+39
-3
lines changed

5 files changed

+39
-3
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,4 @@ jobs:
1111
- uses: actions/checkout@v3
1212
- uses: oven-sh/setup-bun@v1
1313
- run: bin/setup
14-
- run: node --version
1514
- run: bin/test

.github/workflows/publish.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: "Create Release"
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
version:
6+
description: Version Number
7+
required: true
8+
jobs:
9+
package:
10+
name: Package
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
packages: write
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-node@v3 # bun doesn't support publishing yet
18+
with:
19+
node-version-file: '.node-version'
20+
- uses: oven-sh/setup-bun@v1
21+
- run: bin/setup
22+
- run: node --version
23+
- run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc
24+
- run: echo ${{ secrets.NPM_TOKEN }} | wc -m
25+
- run: ls -la ~ && cat ~/.npmrc && bin/publish
26+
release:
27+
name: Release
28+
needs: package
29+
runs-on: ubuntu-latest
30+
permissions:
31+
contents: write
32+
steps:
33+
- uses: actions/checkout@v3
34+
- uses: ncipollo/release-action@v1
35+
with:
36+
tag: v${{ github.event.inputs.version }}

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20.10.0

bin/publish

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
set -e
33
bin/build
4-
bun run publish
4+
npm publish

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"name": "Kien La",
55
"email": "la.kien+digits@gmail.com"
66
},
7-
"version": "0.6.0",
7+
"version": "0.6.1",
88
"repository": "https://github.com/kla/digits",
99
"type": "module",
1010
"main": "./dist/digits.umd.mjs",

0 commit comments

Comments
 (0)