Skip to content

Commit

Permalink
New beta releases, and build provenance
Browse files Browse the repository at this point in the history
  • Loading branch information
greatsquare0 committed Nov 4, 2024
1 parent dd9ac54 commit d9dac1b
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 5 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/release-beta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Release beta

on:
push:
tags:
- 'v*-beta*'

permissions:
id-token: write

env:
NPM_CONFIG_PROVENANCE: true

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

- id: setup-bun
name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest

- id: setup-pnpm
name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: latest
standalone: true
run_install: false

- id: install-deps
name: Install dependencies
run: pnpm install

- id: test
name: Run test
run: |
pnpm run test
- name: Build Package
run: pnpm run build

- name: Publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
tag: beta
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,15 @@ on:
tags:
- 'v*'

permissions:
id-token: write

env:
NPM_CONFIG_PROVENANCE: true

jobs:
release:
if: ${{ !contains(github.ref, 'beta') }}
runs-on: ubuntu-latest
steps:
- id: checkout
Expand Down
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tweenode",
"version": "0.2.5",
"version": "0.2.6-beta",
"description": "A neat JS wrapper for Tweego",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -41,8 +41,5 @@
"dependencies": {
"adm-zip": "^0.5.16",
"fs-extra": "^11.2.0"
},
"publishConfig": {

}
}
}

0 comments on commit d9dac1b

Please sign in to comment.