Giter VIP home page Giter VIP logo

Comments (2)

lovette avatar lovette commented on September 28, 2024

I'm surprised to see that this issue is a year old. I'm also getting the same error with pages-action@v1, but only when wranglerVersion is 3. The workflow runs fine if I don't set wranglerVersion.

Run cloudflare/pages-action@v1
npm warn exec The following package was not found and will be installed: [email protected]
npm warn deprecated [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.
npm warn deprecated [email protected]: Please use @jridgewell/sourcemap-codec instead
▲ [WARNING] `wrangler pages publish` is deprecated and will be removed in the next major version.
Please use `wrangler pages deploy` instead, which accepts exactly the same arguments.
▲ [WARNING] Warning: Your working directory is a git repo and has uncommitted changes
To silence this warning, pass in --commit-dirty=true
✘ [ERROR] EACCES: permission denied, mkdir '/home/runner/work/myproject2x/myproject2x/docs/site/.wrangler/tmp'
If you think this is a bug then please create an issue at https://github.com/cloudflare/workers-sdk/issues/new/choose
? Would you like to report this error to Cloudflare?
🤖 Using fallback value in non-interactive context: no
🪵  Logs were written to "/home/runner/.config/.wrangler/logs/wrangler-2024-07-19_14-25-45_272.log"
npm notice
npm notice New minor version of npm available! 10.7.0 -> 10.8.2
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.8.2
npm notice To update run: npm install -g [email protected]
npm notice
EXIT WHEN NOT EXPECTED
SHELLAC COMMAND FAILED!
Executing: npx wrangler@3 pages publish "." --project-name="myproject-internal-docs" --branch="" in /home/runner/work/myproject2x/myproject2x/docs/site
node:internal/process/promises:289
			triggerUncaughtException(err, true /* fromPromise */);
			^
[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "#<Object>".] {
code: 'ERR_UNHANDLED_REJECTION'
}
Node.js v20.13.1
STDOUT:
If you think this is a bug then please create an issue at https://github.com/cloudflare/workers-sdk/issues/new/choose
? Would you like to report this error to Cloudflare?
🤖 Using fallback value in non-interactive context: no
STDERR:
npm warn exec The following package was not found and will be installed: [email protected]
npm warn deprecated [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.
npm warn deprecated [email protected]: Please use @jridgewell/sourcemap-codec instead
▲ [WARNING] `wrangler pages publish` is deprecated and will be removed in the next major version.
Please use `wrangler pages deploy` instead, which accepts exactly the same arguments.
▲ [WARNING] Warning: Your working directory is a git repo and has uncommitted changes
To silence this warning, pass in --commit-dirty=true
✘ [ERROR] EACCES: permission denied, mkdir '/home/runner/work/myproject2x/myproject2x/docs/site/.wrangler/tmp'
🪵  Logs were written to "/home/runner/.config/.wrangler/logs/wrangler-2024-07-19_14-25-45_272.log"
npm notice
npm notice New minor version of npm available! 10.7.0 -> 10.8.2
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.8.2
npm notice To update run: npm install -g [email protected]
npm notice

My step options are straightforward.

- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
  wranglerVersion: '3'
  accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID}}
  apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN}}
  projectName: myproject-internal-docs
  workingDirectory: ./docs/site
  directory: .

from pages-action.

lovette avatar lovette commented on September 28, 2024

I just happened to stumble across a solution to my particular issue. No clue the root cause though.

The steps before I invoke pages-action include docker.

- name: Build mkdocs container image
  working-directory: ./docs
  run: docker build -t mkdocs .

- name: Build docs
  run: docker run --rm -v ./docs:/docs mkdocs build

If I simply replace docker with podman the EACCES errors go away and my workflow finishes successfully!

Now, if someone could make time to release pages-action@v2 I can silence the last remaining warning.

[WARNING] `wrangler pages publish` is deprecated and will be removed in the next major version.
Please use `wrangler pages deploy` instead, which accepts exactly the same arguments.

from pages-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.