Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix no build before npm publish #199

Merged
merged 1 commit into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading