Skip to content

Commit

Permalink
ci: work around npm cache issue (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffrich authored Mar 11, 2023
1 parent b5503f2 commit 44ebb6c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.repository == 'geoffrich/svelte-adapter-azure-swa' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy Job
env:
# workaround for Oryx issue: see https://github.com/Azure/static-web-apps/issues/909#issuecomment-1320077142
CUSTOM_BUILD_COMMAND: 'chown -R root:root . && npm install --unsafe-perm && npm run build'
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -43,6 +46,8 @@ jobs:
app_location: '/demo' # App source code path
api_location: 'demo/build/server' # Api source code path - optional
output_location: 'build/static' # Built app content directory - optional
# needed when we set CUSTOM_BUILD_COMMAND
skip_api_build: true
###### End of Repository/Build Configurations ######
outputs:
preview_url: ${{ steps.builddeploy.outputs.static_web_app_url }}
Expand Down

0 comments on commit 44ebb6c

Please sign in to comment.