Skip to content

Commit f84fd16

Browse files
committed
add option to ignore npm errors
1 parent a023a61 commit f84fd16

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/packages.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
tags:
66
- "v*" # only run when a new package version is tagged
77
workflow_dispatch:
8+
inputs:
9+
ignoreNpmErrors:
10+
description: 'Whether to continue the workflow if the npm package publish fails or not. Useful when the npm package already exists.'
11+
required: false
12+
default: false
813

914
jobs:
1015
build-ubuntu:
@@ -28,6 +33,7 @@ jobs:
2833
run: npm ci
2934

3035
- name: Build and push package to npm
36+
continue-on-error: ${{ inputs.ignoreNpmErrors }}
3137
env:
3238
FIGMA_ACCESS_TOKEN: ${{ secrets.FIGMA_ACCESS_TOKEN }}
3339
NODE_AUTH_TOKEN: ${{ secrets.NPM_API_KEY }}

0 commit comments

Comments
 (0)