Skip to content

h3rmanj/changesets-triggers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Changeset Permission & Workflows

This repo is testing the correct usage of permissions in a restrictive repository, and using a custom token for publishing and triggering actions.

At first, I'll create the base setup. This should fail because of missing permissions in the workflow.

The permissions needed is:

permissions:
  contents: write
  pull-requests: write

And also check the Allow GitHub Actions to create and approve pull requests in Actions settings.

I'll then release v1.0.0, but this won't trigger the tag triggered workflow.

For v2.0.0, I'll use a PAT, with commitMode: github-api, which then will trigger the tag workflow.

Token variations

For the next section, I'll test variations of token inputs given to the workflow. Each new version will match with a variation.

  • v3.0.0: Built-in token
  • v4.0.0: PAT
  • v5.0.0: PAT + github-api
  • v6.0.0: PAT + actions/checkout PAT
Variation push.branches push.tags pull_request.opened pull_request.synchronized release.published
Built-in token
PAT
PAT + github-api ❌ re-triggers opened instead
PAT + actions/checkout PAT

Tags through releases

v7.0.0 will create tag with release in git-cli mode, to verify providing target_commitish doesn't cause any weird side-effects when tag already exists.

v8.0.0 will create a tag with release in github-api mode.

Tags fixes

v9.0.0 createGithubRelease: false should create a tag, but not a release.

v10.0.0 will pretend to push a tag, this should not fail, and a tag will be created implicitly through release api.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •