Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
111 changes: 0 additions & 111 deletions .github/workflows/bump-version.yml

This file was deleted.

89 changes: 43 additions & 46 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,32 @@
name: Release

permissions:
contents: write
packages: write

on:
release:
types:
- published
workflow_dispatch:
inputs:
checkout-branch:
description: 'The branch or tag to checkout (same as workflow if not specified)'
required: false
push:
branches:
- main

jobs:
jobs:
build:
strategy:
fail-fast: false
runs-on: windows-2019
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.checkout-branch }}
submodules: true
persist-credentials: false

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: '3.13'

- name: Install GCC
id: install-gcc
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: build-essential@latest
version: 1.0

- name: Setup Bun
uses: oven-sh/setup-bun@v2
Expand All @@ -40,40 +37,40 @@ jobs:
run: bun add -g node-gyp

- name: Install dependencies
run: bun install --ignore-scripts
run: bun install --ignore-scripts --frozen-lockfile

- name: Build
run: bun run build

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: memoryjs
path: lib/
# - name: Upload artifact
# uses: actions/upload-artifact@v4
# with:
# name: memoryjs
# path: lib/

release:
needs: [build]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.checkout-branch }}
submodules: true
# release:
# needs: [build]
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# ref: ${{ github.event.inputs.checkout-branch }}
# submodules: true

- name: Download artifacts
uses: actions/[email protected]
with:
name: memoryjs
path: lib/
# - name: Download artifacts
# uses: actions/[email protected]
# with:
# name: memoryjs
# path: lib/

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
# - name: Setup Node
# uses: actions/setup-node@v4
# with:
# node-version: '20'
# registry-url: 'https://registry.npmjs.org'
# env:
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

- name: Publish release
run: npm publish --access public
# - name: Publish release
# run: npm publish --access public
Loading