Skip to content

Commit

Permalink
chore: release v0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nonzzz committed Nov 6, 2024
1 parent 7e4cf41 commit f22e855
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 17 deletions.
38 changes: 22 additions & 16 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,28 @@
name: test
name: releaser

on: [push, pull_request]
on:
push:
tags: ["v*"]

jobs:
test:
releaser:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Install Dependices
run: make

- name: Build Library
run: make build-lib

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
- uses: actions/checkout@v2
- name: Extra Changelog
run: |
CHANGELOG=$(awk -v ver=$(awk -F'"' '/"version": ".+"/{ print $4; exit; }' package.json) '/^## / { if (p) { exit }; if ($2 == ver) { p=1; next} } p' CHANGELOG.md)
echo "CHANGELOG<<EOF" >> $GITHUB_ENV
echo "$CHANGELOG" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: Github Releaser
uses: actions/create-release@v1
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
body: ${{ env.CHANGELOG }}
draft: false
prerelease: false
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 0.1.0

First version.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "squarified",
"version": "0.0.0",
"version": "0.1.0",
"description": "squarified tree map",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down

0 comments on commit f22e855

Please sign in to comment.