Skip to content

Commit

Permalink
build: another attempt to fix broken semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
EvHaus committed Jul 6, 2023
1 parent 5b2d970 commit 5a6adca
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 52 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Release

on:
push:
branches:
- beta
- master

permissions:
contents: read

jobs:
Release:
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
steps:
- uses: actions/checkout@v3

- uses: pnpm/action-setup@v2.2.4

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
cache: 'pnpm'

- name: Install dependencies
run: pnpm i

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpm semantic-release
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Test

on: [push, pull_request]

jobs:
Test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8.6.0

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
cache: 'pnpm'

- name: Install dependencies
run: pnpm i

- name: Test
run: pnpm test
52 changes: 0 additions & 52 deletions .github/workflows/workflow.yml

This file was deleted.

0 comments on commit 5a6adca

Please sign in to comment.