Skip to content
This repository was archived by the owner on Jun 17, 2024. It is now read-only.

Commit 4542833

Browse files
committed
Try out vars for path
1 parent 14b305d commit 4542833

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release-foobar.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: Publish Package to npmjs
2+
env:
3+
PACKAGE_NAME: foobar
24
on:
35
release:
46
types: [created]
@@ -12,7 +14,7 @@ jobs:
1214
with:
1315
node-version: '16.x'
1416
registry-url: 'https://registry.npmjs.org'
15-
- run: cd ~/packages/foobar && npm ci
17+
- run: cd ${{ GITHUB_WORKSPACE }}/packages/${{ PACKAGE_NAME }} && npm ci
1618
- run: npm publish --access public
1719
env:
1820
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)