Skip to content

Commit

Permalink
release: 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chr33s committed Dec 7, 2023
1 parent aa37d5a commit c4320f9
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 3 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release

on:
push:
tags:
- releases/*

jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.release.tag_name }}
- uses: actions/github-script@v7
with:
script: |
const tag_name = context.ref;
const name = tag_name.replace(/^refs\/tags\/releases\//, '');
const prerelease = name.startsWith("0.");
const owner = context.repo.owner;
const repo = context.repo.repo;
github.rest.repos.createRelease({
name,
owner,
prerelease,
repo,
tag_name,
});
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chr33s/base",
"version": "0.1.0",
"version": "1.0.0",
"private": true,
"engines": {
"npm": "^10.0.0",
Expand Down

0 comments on commit c4320f9

Please sign in to comment.