Skip to content

Merge pull request #206 from EVerest/10-12-ci-vue-tsc #36

Merge pull request #206 from EVerest/10-12-ci-vue-tsc

Merge pull request #206 from EVerest/10-12-ci-vue-tsc #36

Workflow file for this run

# 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:
- main
jobs:
create-shrinkwrap:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Read .nvmrc
id: nvmrc
shell: bash
run: echo version=$(cat .nvmrc) >> "$GITHUB_OUTPUT"
- name: Setup Node.js ${{ steps.nvmrc.outputs.version }}
uses: actions/setup-node@v4
with:
node-version: ${{ steps.nvmrc.outputs.version }}
- name: Generate npm-shrinkwrap.json
run: |
npm install
npm shrinkwrap
- name: Publish npm-shrinkwrap.json as Artifact
uses: actions/upload-artifact@v4
with:
name: npm-shrinkwrap
path: npm-shrinkwrap.json