undergroundwires / bump-everywhere Goto Github PK
View Code? Open in Web Editor NEWπ Automate versioning, changelog creation, README updates and GitHub releases using GitHub Actions,npm, docker or bash.
License: Apache License 2.0
π Automate versioning, changelog creation, README updates and GitHub releases using GitHub Actions,npm, docker or bash.
License: Apache License 2.0
The problem is that deploy.yaml depends on a secret that cannot be read when it's triggered by PR.
When you create a pull request from forked repository to base repository, the workflow will be triggered on base repository. (documentation)
Itβs by designed that encrypted secrets are not passed to the runner when a workflow is triggered from a forked repository. (documentation)
However we need the secret there otherwise creating release does not trigger publish workflow deployment (as documented) here.
Need to solve that π€
Version of bump-everywhere 1.3.0
But as I remember it started before I updated version.
I had reading the shell scripts for several days, but no luck.
Cloning Intentop/love-forever
Cloning into '/tmp/tmp.KjNkCL'...
Latest commit sha: 251a4907968843ecfa0efeeffaf5ec0b86c88859
Checking if this run is a re-run
Setting up credentials
Bumping and tagging version
Updating "1.5.3" to "1 5 3..1"
Creating tag: "1 5 3..1"
fatal: '1 5 3..1' is not a valid tag name.
Could not tag: "1 5 3..1"
Could not bump & tag
I suppose it's on my side but where? Wrong dots? ;)
Allow user to customize the GitHub release behavior.
Introduce argument: release-type
with following options:
none
: No release is createddraft
: Release draft is createdprerelease
: Pre-release is createdrelease
: Current behavior, a non-draft release is created and publishedMaybe add the possibility to do this also in monorepo.
If no package.json in root, check one folder layer down.
I added this workflow too the project:
name: Changelog
on:
push:
branches:
- master
jobs:
build:
name: Bump version and release
runs-on: ubuntu-latest
steps:
- name: Bump version and release
uses: undergroundwires/[email protected]
Could not retrieve latest version. Version "404-tekst" is invalid (not in
major.minor.patch format)
And this is the top of the package.json file:
{
"package_name": "Mustasj webproject builder",
"version": "1.3.0",
"private": true,
"description": "Gulp modules for an awesome front-end build tool",
}
I want to use a v
for my version tags but this is currently not possible. One solution would be to extend the options and add a regex or extend the check to also expect v
as possible parameter.
I made a release with version number 2.21 and when that version is added to the package.json i get an error in my build:
npm ERR! Invalid version: "2.21"
Maybe add node semver to the job to verify right format, from the npm documentation: https://docs.npmjs.com/files/package.json#version
First of all, thank you for creating this! I love the idea of bundling all of this boilerplate activity into an easy-to-use action.
My expectation is that the version bump in package.json and generated release notes should be included in the released version. However, it doesn't appear to be working that way. For example, in the last release of this project:
You can see that it includes the release notes and version bump from the previous release, rather than from 1.4.0. Looking at the code, I can see this is because the tag is created and pushed before the commit is made. I see two options:
I prefer option 1 because it means that if the action ever fails to push the commit, there is no need to clean up the tags. Happy to submit a PR for this if this proposal is accepted.
Right now it expects the main branch to be named master
, but ours is main
, so the build fails. It would be nice to have that setting alongside repository
and user
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.