Skip to content

Commit

Permalink
ci(publish): fix no build before npm publish
Browse files Browse the repository at this point in the history
  • Loading branch information
pplancq committed Mar 25, 2024
1 parent 3ac46fe commit 91e4a94
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,31 @@
name: npm-publish

on:
push:
branches:
- master

jobs:
npm-publish:
name: npm-publish
name: Npm Publish
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Node v20.x
uses: actions/setup-node@v4
with:
node-version: 20.x

# https://docs.npmjs.com/cli/v10/commands/npm-ci
- name: Install Package
run: npm ci

- name: Build Project
run: npm run build

- name: Publish if version has been updated
uses: pascalgn/[email protected]
env:
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jest-cucumber",
"version": "4.0.1",
"version": "4.0.2",
"description": "Execute Gherkin scenarios in Jest",
"main": "dist/src/index.js",
"typings": "dist/src/index.d.ts",
Expand Down

0 comments on commit 91e4a94

Please sign in to comment.