Skip to content

Commit 0a43b85

Browse files
committed
re-fixed the other github script as well
1 parent 4f4c415 commit 0a43b85

File tree

2 files changed

+38
-27
lines changed

2 files changed

+38
-27
lines changed

.github/workflows/npm-publish.yml

Lines changed: 37 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,53 @@
1-
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3-
41
name: Publish to NPM
52

6-
# on:
7-
# release:
8-
# types: [created]
9-
103
on:
114
push:
12-
# branches: [master]
135
tags:
146
- '*'
157

168
jobs:
179
build:
1810
runs-on: ubuntu-latest
1911
steps:
20-
- uses: actions/checkout@v4
21-
- run: corepack enable
22-
- uses: actions/setup-node@v4
23-
with:
24-
node-version: 22
25-
- run: yarn
26-
- run: yarn test
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
15+
- name: Enable Corepack
16+
run: corepack enable
17+
18+
- name: Set up Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 22
22+
cache: 'yarn'
23+
24+
- name: Install dependencies
25+
run: yarn
26+
27+
- name: Run tests
28+
run: yarn test
2729

2830
publish-npm:
2931
needs: build
3032
runs-on: ubuntu-latest
3133
steps:
32-
- uses: actions/checkout@v4
33-
- run: corepack enable
34-
- uses: actions/setup-node@v4
35-
with:
36-
node-version: 22
37-
cache: 'yarn'
38-
registry-url: https://registry.npmjs.org/
39-
- run: yarn workspaces focus --all --production
40-
- run: npm publish
41-
env:
42-
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
34+
- name: Checkout code
35+
uses: actions/checkout@v4
36+
37+
- name: Enable Corepack
38+
run: corepack enable
39+
40+
- name: Set up Node.js
41+
uses: actions/setup-node@v4
42+
with:
43+
node-version: 22
44+
cache: 'yarn'
45+
registry-url: https://registry.npmjs.org/
46+
47+
- name: Install production dependencies
48+
run: yarn workspaces focus --all --production
49+
50+
- name: Publish package
51+
run: npm publish
52+
env:
53+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "svelte-marked",
33
"description": "A markdown renderer for Svelte.",
4-
"version": "0.5.3",
4+
"version": "0.5.4",
55
"packageManager": "[email protected]",
66
"engines": {
77
"node": ">=18"

0 commit comments

Comments
 (0)