package-lock

This commit is contained in:
2025-04-02 16:04:08 +02:00
parent b1ffff2c89
commit 6e65358125
3 changed files with 3308 additions and 21 deletions

View File

@ -43,27 +43,15 @@ jobs:
- name: get package name and current version
id: info
run: |
echo "package=@fireclover/sso-web" >> $GITHUB_OUTPUT
echo "version=0.1.56" >> $GITHUB_OUTPUT
#echo "package=$(npm pkg get name)" >> $GITHUB_OUTPUT
#echo "version=$(npm pkg get version)" >> $GITHUB_OUTPUT
- name: clean out working dir
run: rm -rf *
- uses: actions/setup-node@v4
with:
node-version: '22'
registry-url: ${{ github.server_url != 'https://github.com' && format('{0}/api/packages/{1}/npm/', github.server_url, github.repository_owner) || 'https://npm.pkg.github.com' }}
scope: ${{ github.repository_owner }}
token: ${{ secrets.ACTIONS_TOKEN || github.token }}
echo "package=$(npm pkg get name)" >> $GITHUB_OUTPUT
echo "version=$(npm pkg get version)" >> $GITHUB_OUTPUT
- name: install latest published package
run: |
#mkdir /tmp/deployment
#cd /tmp/deployment
mkdir ${{ github.sha }}
cd ${{ github.sha }}
echo "${{ steps.info.outputs.package }}@${{ steps.info.outputs.version }}"
npm i ${{ steps.info.outputs.package }}
npm i ${{ steps.info.outputs.package }}@${{ steps.info.outputs.version }}
echo Done
env:
NODE_AUTH_TOKEN: ${{ secrets.ACTIONS_TOKEN || github.token }}
@ -82,5 +70,5 @@ jobs:
aws-account-id: 515966519418
dns-zone: 'test.aws.fireclover.cloud'
subdomain: 'test-example'
#web-path: '/tmp/deployment/node_modules/${{ steps.info.outputs.package }}/dist'
web-path: 'node_modules/${{ steps.info.outputs.package }}/dist'
web-path: '${{ github.sha }}/node_modules/${{ steps.info.outputs.package }}/dist'
#web-path: 'node_modules/${{ steps.info.outputs.package }}/dist'