Questions tagged [github-actions]

Leverage the power of GitHub Actions to streamline your software processes effortlessly. Have inquiries about setting up a workflow? Look no further than this tag for assistance. For general help with GitHub Actions, reach out to their support team through email at support.github.com/contact or engage with the active GitHub community on the discussion forums at github.com/orgs/community/discussions.

Unable to find npm and pm2 commands during the execution of GitHub actions on EC2 instance

I'm currently utilizing a GitHub Actions workflow. Here's the code snippet: name: Deploy to EC2 on: workflow_dispatch: # Manual trigger jobs: deploy: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/ ...

Setting up a custom package installation process within a GitHub action

I've been working on incorporating private packages from GitHub into my project. Here's a snippet of my workflow: - name: Set GitHub packages registry run: | echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" & ...

Ways to resolve issue with a build script that is missing when deploying Cypress in GitHub Actions

I recently attempted to implement a GitHub action to run Cypress tests on my app. Here is the configuration of my workflow file: name: Cypress Tests on: [push] jobs: cypress-run: runs-on: ubuntu-latest defaults: run: working-dire ...

Utilize a GitHub action to publish npm packages with a specific tag name

I am in the process of transferring our current Travis tasks to GitHub Actions. With Travis, the command below would publish to npm and use the release tag name for the npm version. script: yarn npm-bundle && npm version $TRAVIS_BRANCH --allow-same ...

Encountered a FirebaseError while trying to build a Docker image on Github Actions due to an error with the API key (auth/

My goal is to establish a streamlined CI/CD pipeline utilizing GitHub Actions. This process involves testing, docker image building, and deploying to Google Cloud Run. While everything functions correctly on my local environment due to access to the .env ...

Storing kubernetes secrets securely within GitHub Actions

We are currently implementing the use of github actions, with a focus on securely storing sensitive information like kubeconfig within github's secrets. A GitHub secret has been set up under the name KUBECONFIG1 Steps to Replicate The GitHub secret shoul ...

What are some tips for incorporating GitHub secrets into a .npmrc file?

In my GitHub project, I have multiple dependencies that are all hosted on the GitHub Package Registry. I rely on GitHub actions to publish these packages. While I can easily utilize GitHub secrets in my workflow.yml file, I am facing challenges when it com ...

Encountering difficulty installing a private npm package within GitHub Actions

Having a private npm package within my organization that is crucial for my project, I have encountered an issue while trying to build the project in a different repository. Despite successfully creating tokens and publishing the package from a separate wor ...

Tips for resolving issues with pipelines in GitHub Actions

I have minimal experience with creating pipelines in GitHub Actions, but I was tasked with setting up a pipeline for a pull request. Here is what I came up with: # This is a simple workflow to help you get started with Actions name: pipeline_action_on_pull ...

Encountering 404 Errors with CSS and JS files in Nuxt3 while deploying to the test channel of Firebase Hosting

I've been facing an issue while trying to deploy a Nuxt3 project using Github Actions to Firebase Hosting. The workflow script runs smoothly and the app builds without any errors. However, when accessing the testing channel URL, several CSS and JS fil ...

Is there a long-lasting solution for ensuring the lockfileVersion of npm-shrinkwrap stays at lockfileVersion@1, without automatically updating to lockfileversion@2

Every time I try to push my code into GitHub Actions or build a Docker image, I encounter this issue. shell: /usr/bin/bash -e {0} npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for loc ...

Setting up Python ARM in a Docker environment can be quite time-consuming due to the

Looking to launch a Docker container containing Python bots that require libraries like pandas, numpy, and matplotlib. While everything runs smoothly in an x86 environment, the process of building the image on an Arm environment is significantly slower. I ...

Tips for triggering a Github workflow solely based on changes in the package.json version

I am looking to trigger the Github workflow only when the package version has been updated. After running npm version patch and pushing to GitHub, I want to publish this new version. Despite my attempts, it still triggers a build with every merge. name: ...

Having trouble deploying my Node.js application on Microsoft Azure

I encountered an issue while trying to deploy my website on Microsoft Azure Linux App Service using Github actions. The project works perfectly fine in Glitch, but I receive errors when trying to run it on Azure. It seems that Azure is attempting to insta ...

Sonar activated - Self-hosted runner limitation: unable to use npm for test coverage alongside Docker integration

Whenever I attempt to execute the (action checkout) on a self-hosted runner with npm run coverage and then after sonarqube, I encounter this error:" docker: Error response from daemon: pull access denied for 6cd1db, repository does not exist or may re ...

Error in GitHub Action: Uploading NPM Package

I encountered an issue with the "publish npm package github action" name: Publish package on NPM on: release: types: [created] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-node@ ...

Encountering failures while running Angular tests in GitHub Actions due to reading inner text (which works fine locally)

I am facing an issue in my GitHub actions workflow where Karma is unable to read the 'innerText' of a native element for an Angular project. The error 'TypeError: Cannot read properties of null (reading 'innerText')' is being ...

Encountering a 403 error while trying to retrieve my identity with npm-automation-token

Whenever I try the npm whoami command with an npm automation token, it returns a 403 error. Here is my npmrc configuration: //registry.npmjs.org/:_authToken=${NPM_TOKEN} Executing the following command results in the error: NPM_TOKEN=xxxxxx-xxxxx-xxxxxx-x ...

Creating a KotlinJS application using GitHub Actions for continuous integration tasks

I am encountering some difficulties while trying to set up GitHub Actions for building my KotlinJS project. I have included the following JavaScript runtime dependency: implementation(npm("kotlinx-serialization-kotlinx-serialization-core-jslegacy", "1.4.2- ...

Issue with locating .env file in GitHub CI Docker environment

Looking to deploy my Next.JS app using Docker and GitHub CI. The actions are running as expected, but I'm facing an issue with the .env.production file not being found when referenced in the Dockerfile. I attempted renaming the file to .env or other names ...

Accessing GitHub via SSH from within a GitHub Action runner on macOS

Currently, I am facing an issue with building an auto-deploy workflow on GitHub Action. The problem arises because one of my packages relies on a private repository owned by me. Every time I execute the command npm i, I encounter the following error: npm E ...

Encountering a 404 error when trying to access assets on _next folder after

I have encountered an issue while trying to deploy my next app to gh pages. Only the index and 404 pages are displaying, while all other pages, images, js, and css files inside the _next folder are returning a 404 error. After conducting some research, I ...

The action on Github is failing to construct a React application

Whenever I attempt to build my project on my computer using the command (npm run build "scripts": { "build": "react-scripts build --passWithNoTests" }), it successfully builds without any issues. However, when I push these cha ...

Experiencing Typescript errors solely when running on GitHub Actions

I've been working on a React+Vite project with the Dockerfile below. Everything runs smoothly when I execute it locally, but I encounter errors like Cannot find module '@/components/ui/Button' or its corresponding type declarations and error ...

Encountered an issue loading next.config.js during the build process with GitHub actions

Currently, I am utilizing a straightforward ssh deploy action along with a bash script designed to both build and restart the pm2 frontend process. Everything seems to be running smoothly when executing the script directly on the ec2 instance. However, is ...

Deployment to DigitalOcean fails due to GitHub action error

I'm encountering an issue during the deployment process to DigitalOcean via github actions and I can't figure out why it's throwing an error related to python. Could this be a result of the docker images I'm utilizing? Despite my attempts to install differ ...

Securing Artifacts in GitHub Actions: Best Practices for Keeping Your Data

I have a unique project in mind for a single-page application hosted on GitHub. The application will interact with a REST API, and I am using Vite as the build tool. One challenge I'm facing is that all environment variables are included in the output when ...

A guide on incorporating Django Selenium testing into GitHub Actions

Currently working on a Django project, I have a test case that inherits from django.test.LiveSeverTestCase and utilizes Selenium: from django.test import LiveServerTestCase from selenium.webdriver.chrome.webdriver import WebDriver class FrontEndTestCase(L ...

"Unable to locate package.json file when trying to run NPM install

When setting up a workflow on Github, I encountered an issue while running the npm install command: npm WARN saveError ENOENT: no such file or directory, open '/home/runner/work/project/project/package.json' npm notice created a lockfile as package-lock.js ...

GitHub Action encounters a fatal error during the build process

As a new face in the DevOps world, I've decided to take the plunge and experiment with setting up a straightforward GitHub Action. My goal is to have my website automatically deployed to Firebase whenever I push changes to the master branch. However, I've ...

Issue with GitHub actions: NPM publishing encountering authentication error with code ENEEDAUTH

I have tried following the official guide for publishing and installing a package using GitHub Actions: Authenticating to package registries with granular permissions Encountered this error: npm ERR! code ENEEDAUTH npm ERR! need auth This command requires ...

Is it possible to deploy to a different repository using GitHub actions?

I currently have multiple repositories that rely on a single library repository. At the moment, I manually update the version when necessary. However, as more repositories start depending on my library, I am concerned about having to update multiple reposi ...

Switch over your operations to be compatible with Node 16 instead of Node 12 on GitHub

Despite previous claims that this issue was resolved elsewhere, it is still unresolved. I have encountered a complaint about the use of Node 12 instead of Node 16 in the following code snippet: No specific documentation outlining the disparities between N ...

The semantic release is encountering an issue with publishing the incorrect folder

Recently, I've been facing a challenge while trying to publish my package to Github using semantic-release. The issue arises when attempting to upload the correct folder as a source code (zip) file in my npm package hosted on GitHub. This is what my ...