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

feat: pnpm support #75

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
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
14 changes: 13 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: test

on:
push:
branches: ['main']
branches: [ 'main' ]
pull_request:

jobs:
Expand Down Expand Up @@ -46,6 +46,18 @@ jobs:
with:
cmd: install
dir: 'yarn/test'
- name: Setup node
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
with:
node-version: 16.14.0
- name: Install dependencies with pnpm
uses: pnpm/action-setup@v2
with:
# lock file 6.0
version: 8
run_install: |
- cwd: 'pnpm/test'
package_json_file: 'pnpm/test/package.json'
- name: Run swift build
working-directory: 'swift/test'
run: swift build
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ require (
github.com/stretchr/testify v1.8.4
github.com/vifraa/gopom v0.2.1
golang.org/x/mod v0.11.0
gopkg.in/yaml.v3 v3.0.1
sigs.k8s.io/release-utils v0.7.4
)

Expand Down Expand Up @@ -52,5 +53,4 @@ require (
gonum.org/v1/gonum v0.8.2 // indirect
gopkg.in/neurosnap/sentences.v1 v1.0.7 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
1 change: 1 addition & 0 deletions npm/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ func (m *NPM) buildDependencies(path string, deps map[string]interface{}) ([]met
if err != nil {
return modules, err
}
de.Root = true
h := fmt.Sprintf("%x", sha256.Sum256([]byte(fmt.Sprintf("%s-%s", de.Name, de.Version))))
de.Checksum = meta.Checksum{
Algorithm: "SHA256",
Expand Down
Loading
Loading