From f933ef91a24ec1370f5febbf4cfe52755cea16f1 Mon Sep 17 00:00:00 2001 From: Aaron Date: Mon, 26 Jun 2023 09:57:26 -0500 Subject: [PATCH] ci: Create release workflow (#13) --- .github/workflows/release.yml | 46 ++++++++++++++++++++++++++++++++++ .github/workflows/validate.yml | 1 + README.md | 6 +++++ package.json | 14 ++++++++--- 4 files changed, 64 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..8dc70dcf --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,46 @@ +name: Release +on: + workflow_dispatch: + +jobs: + validate: + uses: './.github/workflows/validate.yml' + + publish: + runs-on: ubuntu-20.04 + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup PNPM + uses: pnpm/action-setup@v2 + with: + version: 7 + + - name: Setup NodeJS + uses: actions/setup-node@v3 + with: + node-version: 18 + cache: 'pnpm' + + - name: Install dependencies + run: | + pnpm install --ignore-scripts + pnpm build + pnpm install + + - name: Bump and Tag + run: | + pnpx changelogen@latest --release + git push + git push --tags + + - name: NPM + run: | + echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" > ~/.npmrc + pnpm publish + + - name: GitHub Release + run: pnpx changelogen@latest gh release diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index a9c69d73..8c010b05 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -1,5 +1,6 @@ name: Validate on: + workflow_call: pull_request: push: branches: diff --git a/README.md b/README.md index adf6c629..08269957 100644 --- a/README.md +++ b/README.md @@ -31,3 +31,9 @@ ## Get Started Checkout the [installation guide](https://wxtjs.dev/get-started) to get started with WXT. + +## Contributors + + + + diff --git a/package.json b/package.json index 73352237..a0fb76f6 100644 --- a/package.json +++ b/package.json @@ -1,17 +1,25 @@ { "name": "wxt", "type": "module", - "version": "0.1.0", + "version": "0.0.0", "description": "Next gen framework for developing web extensions", + "repository": { + "type": "git", + "url": "https://github.com/aklinker1/wxt" + }, "keywords": [ "vite", "chrome", "web", "extension", "browser", - "bundler" + "bundler", + "framework" ], - "author": "Aaron Klinker", + "author": { + "name": "Aaron Klinker", + "email": "aaronklinker1+wxt@gmail.com" + }, "license": "MIT", "files": [ "dist",