Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jahredhope/github-action-example

Demo for creating GitHub Action
https://github.com/jahredhope/github-action-example

Last synced: 16 days ago
JSON representation

Demo for creating GitHub Action

Awesome Lists containing this project

README

        

# GitHub Action Example

An example project for setting up a GitHub action.

- Automated versioning and release notes with [Changesets](https://github.com/changesets/changesets)
- Bundling with [@vercel/ncc](https://github.com/vercel/ncc)
- Compiling and committing by tag. Avoiding adding built assets to the commit history and allowing flexible version selection.

## Usage

```yaml
name: "example-workflow"

on:
push:

jobs:
example-job:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Example action
# By major version
uses: jahredhope/github-action-demo@v1
# By minor version
uses: jahredhope/[email protected]
# By patch version
uses: jahredhope/[email protected]
# By commit
uses: jahredhope/github-action-demo@va84c1b7edd8162daf28f75ce56fd533465daa741
```