Skip to content
Merged
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
19 changes: 19 additions & 0 deletions .github/workflows/license-compliance.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
on:
workflow_call:
secrets:
npm_token:
required: false
Comment thread
c-gerke marked this conversation as resolved.
inputs:
workdir:
required: false
Expand All @@ -14,6 +17,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Enable npm.powerapp.cloud auth
shell: bash
env:
NPM_REGISTRY_PASSWORD: ${{ secrets.npm_token }}
run: |
if [ -z "$NPM_REGISTRY_PASSWORD" ]; then
exit 0
fi

auth="$(printf 'gh-actions:%s' "$NPM_REGISTRY_PASSWORD" | base64 | tr -d '\n')"
echo "::add-mask::$auth"
{
echo "registry=https://npm.powerapp.cloud"
echo "//npm.powerapp.cloud/:_auth=${auth}"
echo "//npm.powerapp.cloud/:always-auth=true"
} >> "${NPM_CONFIG_USERCONFIG:-$HOME/.npmrc}"
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/yarn-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,18 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Enable npm.powerapp.cloud auth
shell: bash
env:
NPM_REGISTRY_PASSWORD: ${{ secrets.npm_token }}
run: |
auth="$(printf 'gh-actions:%s' "$NPM_REGISTRY_PASSWORD" | base64 | tr -d '\n')"
echo "::add-mask::$auth"
{
echo "registry=https://npm.powerapp.cloud"
echo "//npm.powerapp.cloud/:_auth=${auth}"
echo "//npm.powerapp.cloud/:always-auth=true"
} >> "${NPM_CONFIG_USERCONFIG:-$HOME/.npmrc}"
- run: yarn install --frozen-lockfile
working-directory: ${{ inputs.workdir }}
- run: yarn lint
Expand All @@ -50,6 +62,8 @@ jobs:
with:
workdir: "${{ inputs.workdir }}"
decisions: "${{ inputs.license-decisions }}"
secrets:
npm_token: ${{ secrets.npm_token }}

release:
needs: [build, license-compliance]
Expand Down
Loading