Skip to content

Commit 989ca6d

Browse files
committed
Deployment workflow
1 parent 603783c commit 989ca6d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ jobs:
2323
node-version: 18
2424
registry-url: "https://registry.npmjs.org/"
2525

26+
- name: Configure npm to ignore scripts
27+
run: |
28+
echo "ignore-scripts=true" > .npmrc
29+
cat .npmrc
30+
2631
- name: Install dependencies
2732
run: npm ci
2833

@@ -45,6 +50,6 @@ jobs:
4550
echo "New version: $(npm pkg get version)"
4651
4752
- name: Publish to npm
48-
run: npm publish --access public --ignore-scripts
53+
run: npm publish --access public
4954
env:
5055
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ignore-scripts=true

0 commit comments

Comments
 (0)