Skip to content

Commit eeef8e8

Browse files
committed
Setup npm release action
1 parent 9f393cc commit eeef8e8

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

.github/workflows/release.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Publish Package to npmjs
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
# Setup .npmrc file to publish to npm
11+
- uses: actions/setup-node@v3
12+
with:
13+
node-version: '20.x'
14+
registry-url: 'https://registry.npmjs.org'
15+
- run: npm ci
16+
- run: npm publish
17+
env:
18+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@
66
npm install multithreading
77
```
88

9-
Usage with Bun is currently not supported due to this issue: https://github.com/oven-sh/bun/issues/2875

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "multithreading",
3-
"version": "0.1.2",
3+
"version": "0.1.3",
44
"description": "Multithreading that feels like normal JavaScript",
55
"author": "Walter van der Giessen <[email protected]>",
66
"homepage": "https://github.com/W4G1/multithreading/tree/main#readme",

0 commit comments

Comments
 (0)