Skip to content

Commit 89b2d35

Browse files
committed
Migrating from semantic-release to release-please
Release-As: 11.0.1
1 parent a6cf71f commit 89b2d35

File tree

3 files changed

+32
-110
lines changed

3 files changed

+32
-110
lines changed

.github/workflows/release.yml

Lines changed: 32 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,45 @@
1-
name: Release
21
on:
3-
workflow_run:
4-
workflows: ["ci"]
5-
types:
6-
- completed
2+
push:
73
branches:
84
- master
5+
96
permissions:
10-
contents: write # to be able to publish a GitHub release
11-
issues: write # to be able to comment on released issues
12-
pull-requests: write # to be able to comment on released pull requests
13-
id-token: write # to enable use of OIDC for tru
7+
contents: write
8+
pull-requests: write
9+
id-token: write
10+
11+
name: release-please
12+
1413
jobs:
15-
release:
16-
name: Release
14+
release-please:
1715
runs-on: ubuntu-latest
18-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1916
steps:
20-
- name: Check out Git repository
21-
uses: actions/checkout@v3
17+
- uses: actions/setup-node@v4
2218
with:
23-
fetch-depth: 0
24-
persist-credentials: false
25-
19+
node-version: 20
20+
registry-url: 'https://registry.npmjs.org'
21+
if: ${{ steps.release.outputs.release_created }}
22+
# Upgrade NPM to latest version
23+
- run: sudo npm install -g npm
24+
- uses: google-github-actions/release-please-action@v3
25+
id: release
26+
with:
27+
release-type: node
28+
package-name: "@workadventure/simple-peer"
29+
# The logic below handles the npm publication:
30+
- uses: actions/checkout@v2
31+
# these if statements ensure that a publication only occurs when
32+
# a new release is created:
33+
if: ${{ steps.release.outputs.release_created }}
2634
- name: Setup PNPM
2735
uses: pnpm/action-setup@v4
2836
with:
2937
version: 8.8.0
30-
31-
- name: Setup Node
32-
uses: actions/setup-node@v3
33-
with:
34-
node-version: '20'
35-
cache: 'pnpm'
36-
37-
# upgrade NPM to a version compatible with Trusted Packages
38-
- run: npm install -g npm@11
39-
40-
- name: Install dependencies
41-
run: pnpm install --frozen-lockfile
42-
43-
- name: Build
44-
run: pnpm run build
45-
46-
- name: Release
38+
- run: pnpm install
39+
if: ${{ steps.release.outputs.release_created }}
40+
- run: pnpm run build
41+
if: ${{ steps.release.outputs.release_created }}
42+
- run: pnpm publish --access public
4743
env:
48-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
49-
run: npx semantic-release
44+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
45+
if: ${{ steps.release.outputs.release_created }}

.releaserc.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

RELEASING.md

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)