github-actions

Not Found - PUT https://npm.pkg.github.com/package-name

浪子不回头ぞ 提交于 2020-07-18 16:13:15
问题 I'm trying to upload a package on GPR (Github Package registry). I log in successfully: npm login --registry=https://npm.pkg.github.com and then run these command: npm set registry https://npm.pkg.github.com/ npm publish which returns this error: npm ERR! 404 Not Found - PUT https://npm.pkg.github.com/package-name npm ERR! 404 npm ERR! 404 'package-name@version' is not in the npm registry. Seems it tries to upload a package on npm registry instead of github package registry. How should I fix

Create Pull Request on Git Push

大城市里の小女人 提交于 2020-07-15 20:57:10
问题 I have GitHub repository with 2 branches: "master" & "develop". The workflow for us is that any code should be committed to the "develop" branch then pushed to GitHub, then a Pull Request should be created to merge the commits into the "master" branch. I am trying to write an Action that will create a Pull Request once a developer pushes commits to the branch "develop" and had the following script: name: Create pull request on: push: branches: - develop jobs: prForMasterBranch: runs-on:

Create Pull Request on Git Push

这一生的挚爱 提交于 2020-07-15 20:56:58
问题 I have GitHub repository with 2 branches: "master" & "develop". The workflow for us is that any code should be committed to the "develop" branch then pushed to GitHub, then a Pull Request should be created to merge the commits into the "master" branch. I am trying to write an Action that will create a Pull Request once a developer pushes commits to the branch "develop" and had the following script: name: Create pull request on: push: branches: - develop jobs: prForMasterBranch: runs-on:

Github actions can't find package within repository

时光怂恿深爱的人放手 提交于 2020-07-10 04:51:33
问题 When setting up a github actions pipeline, I can't get it to find packages that are within my repository, and the test fails because it's missing packages. What happens is that it clones the repo someplace but doesn't include the cloned repo's directories to look for packages. That fails because I am importing packages from within that repo in my code. I believe my directory structure is sound because I have no trouble testing and building locally: . │ ├── extractors │ │ ├── fip.go │ │ └──

Github actions can't find package within repository

江枫思渺然 提交于 2020-07-10 04:50:27
问题 When setting up a github actions pipeline, I can't get it to find packages that are within my repository, and the test fails because it's missing packages. What happens is that it clones the repo someplace but doesn't include the cloned repo's directories to look for packages. That fails because I am importing packages from within that repo in my code. I believe my directory structure is sound because I have no trouble testing and building locally: . │ ├── extractors │ │ ├── fip.go │ │ └──

How do I know the total time I used to run workflow in github action?

可紊 提交于 2020-07-09 12:33:46
问题 Each time I create a PR or make commits, I have some workflows running. But since I have a private repo and I get only 2000 min/month for running workflows on Github Actions, I wanted to track the time used. How do I know how much total time I used out of 2000 free min that Github provides? Is there a place in Github UI that you see the total time you used/ total time remaining? 回答1: The best you can get is the view in the main actions tab: Sadly, no simple sum/month or anything like that was

GitHub Actions tag filter with branch filter

余生长醉 提交于 2020-07-08 11:51:53
问题 GitHub actions allow the use of branch and tag filters, but they don't seem to work together. For example, this workflow runs on pushes to master or pushes with a tag. name: npm Publish on: push: branches: - master tags: - v* I want to setup a publishing workflow that runs on tagged pushes to master, not just one or the other. How can this be done? 回答1: One solution is to use on: release instead of on: push . This will trigger the workflow to execute when a release is published via the GitHub

GitHub Actions tag filter with branch filter

爱⌒轻易说出口 提交于 2020-07-08 11:51:33
问题 GitHub actions allow the use of branch and tag filters, but they don't seem to work together. For example, this workflow runs on pushes to master or pushes with a tag. name: npm Publish on: push: branches: - master tags: - v* I want to setup a publishing workflow that runs on tagged pushes to master, not just one or the other. How can this be done? 回答1: One solution is to use on: release instead of on: push . This will trigger the workflow to execute when a release is published via the GitHub

How to cache yarn packages in GitHub Actions

自作多情 提交于 2020-07-03 02:33:51
问题 I am using GitHub Actions to build my TypeScript project. Everytime I run action I am waiting 3 minutes for all dependencies to get installed. Is there way to cache yarn dependencies, so build time will be faster? I tried this: - name: Get yarn cache directory path id: yarn-cache-dir-path run: echo "::set-output name=dir::$(yarn cache dir)" - uses: actions/cache@v1 id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) with: path: ${{ steps.yarn

How to cache yarn packages in GitHub Actions

孤街浪徒 提交于 2020-07-03 02:32:14
问题 I am using GitHub Actions to build my TypeScript project. Everytime I run action I am waiting 3 minutes for all dependencies to get installed. Is there way to cache yarn dependencies, so build time will be faster? I tried this: - name: Get yarn cache directory path id: yarn-cache-dir-path run: echo "::set-output name=dir::$(yarn cache dir)" - uses: actions/cache@v1 id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) with: path: ${{ steps.yarn