Skip to content

Commit

Permalink
ci(shrinkwrap): added generator
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Mertens <[email protected]>
  • Loading branch information
lukas-mertens committed Mar 21, 2024
1 parent 8d76caf commit 8488c9f
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/shrinkwrap.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright 2020 - 2024 Pionix GmbH and Contributors to EVerest


name: Generate and Publish npm-shrinkwrap
# The purpose of this job is to generate an npm-shrinkwrap.json which is needed for the yocto layer

on:
push:
branches:
- npm-shrinkwrap

jobs:
create-shrinkwrap:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20'

- name: Generate npm-shrinkwrap.json
run: |
npm install
npm shrinkwrap
- name: Publish npm-shrinkwrap.json as Artifact
uses: actions/upload-artifact@v3
with:
name: npm-shrinkwrap
path: npm-shrinkwrap.json

0 comments on commit 8488c9f

Please sign in to comment.