Skip to content

Commit

Permalink
ci: Update github actions and extract.js πŸ“ƒπŸ‘¨β€πŸ’»
Browse files Browse the repository at this point in the history
  • Loading branch information
alejooroncoy committed Feb 20, 2023
1 parent 8028d23 commit 39710c2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
- name: Extract changelog
run: |
node ./extract.js
env:
VERSION: ${{ github.ref_name }}

- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
Expand Down
3 changes: 1 addition & 2 deletions extract.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ const { readFile, writeFile } = require("node:fs/promises");
const path = require("node:path");

const changeLogPath = path.resolve(__dirname, "./CHANGELOG.md");
const versionPath = path.resolve(__dirname, "./version.txt");

const main = async () => {
const content = await readFile(changeLogPath, "utf-8");
const version = await readFile(versionPath, "utf-8");
const { VERSION: version } = process.env;

const contentVersion = content
.split("##")
Expand Down
1 change: 0 additions & 1 deletion version.txt

This file was deleted.

1 comment on commit 39710c2

@vercel
Copy link

@vercel vercel bot commented on 39710c2 Feb 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.