Skip to content

Commit

Permalink
ci: add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jagoral committed Jun 20, 2024
1 parent cdc728e commit 32f3d86
Show file tree
Hide file tree
Showing 7 changed files with 1,996 additions and 4 deletions.
10 changes: 10 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch"
}
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Release

on:
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Setup Node.js 22.x
uses: actions/setup-node@v3
with:
node-version: 22.x

- uses: pnpm/action-setup@v4

- name: Install dependencies
run: pnpm install

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Cucumber syntax extensions for `vitest` and `playwright`
# Cucumber syntax for `vitest` and `playwright`

This repository contains two powerful extensions for integrating Cucumber-like syntax with [Playwright](https://playwright.dev/) and [vitest](https://vitest.dev/), enhancing your testing workflow with behavior-driven development (BDD) capabilities.

Expand Down
5 changes: 2 additions & 3 deletions examples/playwright/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"name": "@repo/playwright-example",
"main": "index.js",
"scripts": {
"test": "npx playwright test"
},
"private": true,
"author": "Tomasz Góral <[email protected]>",
"scripts": {},
"license": "ISC",
"devDependencies": {
"@playwright/test": "^1.44.1",
Expand Down
1 change: 1 addition & 0 deletions examples/vitest/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@repo/vitest-example",
"author": "Tomasz Góral <[email protected]>",
"private": true,
"type": "module",
"scripts": {
"test": "vitest",
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@
"private": true,
"scripts": {
"build": "turbo build",
"changeset": "changeset",
"lint": "biome check .",
"lint:fix": "biome check --apply .",
"release": "turbo build --filter=\"./packages/*\" && changeset publish",
"test:run": "turbo test:run"
},
"devDependencies": {
"@biomejs/biome": "1.6.3",
"@changesets/cli": "2.27.5",
"@repo/typescript-config": "workspace:*",
"lefthook": "1.6.7",
"turbo": "2.0.4"
Expand Down
Loading

0 comments on commit 32f3d86

Please sign in to comment.