Skip to content

Commit

Permalink
chore: release v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nonzzz committed Jan 7, 2024
1 parent c79c29c commit 04abc3b
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 2 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: releaser

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

jobs:
releaser:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- 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:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
body: ${{ env.CHANGELOG }}
draft: false
prerelease: false
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## 0.2.0

# Features & Improves

- Support paths alias. #6
- Rename `stylexImports` to `importSources`

# Patches

- Fix hmr error with nuxt.
- Fix `@stylexjs/open-props` can't work.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default defineConfig({
| --------------------------- | --------------------------------------------- | ---------------------------------------------- | ---------------------------------------------------------- |
| `include` | `string \| RegExp \| Array<string \| RegExp>` | `/\.(mjs\|js\|ts\|vue\|jsx\|tsx)(\?.*\|)$/` | Include all assets matching any of these conditions. |
| `exclude` | `string \| RegExp \| Array<string \| RegExp>` | `-` | Exclude all assets matching any of these conditions. |
| `stylexImports` | `string[]` | `['stylex', '@stylexjs/stylex']` | Only assets bigger than this size are processed (in bytes) |
| `importSources` | `string[]` | `['stylex', '@stylexjs/stylex']` | Only assets bigger than this size are processed (in bytes) |
| `babelConfig` | `object` | `{}` | Babel config for stylex |
| `unstable_moduleResolution` | `Record<string,any>` | `{ type: 'commonJS', rootDir: process.cwd() }` | See stylex document |
| `useCSSLayers` | `boolean` | `default` | See stylex document |
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vite-plugin-stylex-dev",
"version": "0.1.3",
"version": "0.2.0",
"description": "an unofficial stylex vite plugin",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit 04abc3b

Please sign in to comment.