Skip to content

Commit 278dbed

Browse files
Update npm-publish.yml
1 parent 15e2304 commit 278dbed

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/npm-publish.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- name: Get tag version
13-
if: startsWith(github.ref, 'refs/tags/')
14-
id: get_tag_version
15-
run: echo ::set-output name=TAG_VERSION::${GITHUB_REF/refs\/tags\//}
12+
- uses: actions/checkout@v3
1613

1714
- uses: denoland/setup-deno@v1
1815
with:
@@ -23,11 +20,16 @@ jobs:
2320
node-version: "18.x"
2421
registry-url: "https://registry.npmjs.org"
2522

23+
- name: Get tag version
24+
if: startsWith(github.ref, 'refs/tags/')
25+
id: get_tag_version
26+
run: echo ::set-output name=TAG_VERSION::${GITHUB_REF/refs\/tags\//}
27+
2628
- name: npm build
27-
run: deno run -A ../scripts/build.ts ${{steps.get_tag_version.outputs.TAG_VERSION}}
29+
run: deno run -A ./scripts/build.ts ${{steps.get_tag_version.outputs.TAG_VERSION}}
2830

2931
- name: npm publish
3032
if: startsWith(github.ref, 'refs/tags/')
3133
env:
3234
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
33-
run: cd npm && npm publish
35+
run: cd dist && npm publish

0 commit comments

Comments
 (0)