Skip to content

Commit

Permalink
packit: build dist files when building from PR
Browse files Browse the repository at this point in the history
  • Loading branch information
jamacku committed Aug 13, 2024
1 parent 51cc48f commit 2536a34
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/tsconfig.*
/test

nodejs-storypointer.spec
/rpm

*.tsbuildinfo
.*
7 changes: 7 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ files_to_sync:
upstream_package_name: storypointer
downstream_package_name: nodejs-storypointer

actions:
prepare-files:
- npm install -g corepack
- corepack install
- yarn install
- yarn build

jobs:
- &copr
job: copr_build
Expand Down
File renamed without changes.
6 changes: 1 addition & 5 deletions rpm/nodejs-storypointer.spec
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ URL: https://github.com/redhat-plumbers-in-action/storypointer
Source: https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz

BuildRequires: nodejs-devel
BuildRequires: yarnpkg

%global _description %{expand:
Simple CLI tool that provides an interactive interface to quickly set priority and story points for your JIRA issues.}
Expand All @@ -26,17 +25,14 @@ License: 0BSD AND BSD-2-Clause AND GPL-3.0-or-later AND ISC AND MIT AND (MIT OR

%files
%doc README.md
%license LICENSE %{npm_name}-bundled-licenses.txt
%license LICENSE LICENSE-BUNDLED
%{nodejs_sitelib}/%{npm_name}
%{_bindir}/%{npm_name}

%prep
%setup -q -n package
mv rpm/%{npm_name}-bundled-licenses.txt .

%build
yarn install
yarn build

%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}/bin
Expand Down

0 comments on commit 2536a34

Please sign in to comment.