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
27 changes: 4 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,11 @@ name: ci
on: [push, pull_request]

jobs:
build-rust:
runs-on: ubuntu-latest
env:
RUST_BACKTRACE: full
# https://github.com/rust-unofficial/patterns/blob/master/anti_patterns/deny-warnings.md
RUSTFLAGS: -D warnings

steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install rust
uses: dsherret/rust-toolchain-file@v1
- name: Clippy
run: |
cargo clippy --all-targets --locked --no-default-features
cargo clippy --all-targets --locked
cargo clippy --all-targets --locked --all-features
- name: Test
run: cargo test --all-features --locked

build-javascript:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v6
Expand Down Expand Up @@ -62,7 +45,5 @@ jobs:
if: |
github.repository == 'denoland/eszip' &&
startsWith(github.ref, 'refs/tags/')
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
cd npm/ && npm publish
cd npm/ && npm publish --provenance --access public
21 changes: 0 additions & 21 deletions .github/workflows/publish.yml

This file was deleted.

19 changes: 5 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,12 @@ name: release
on:
workflow_dispatch:
inputs:
releaseKind:
description: 'Kind of release'
default: 'minor'
type: choice
options:
- patch
- minor
version:
description: 'Version to release (e.g. 0.110.0)'
required: true

jobs:
rust:
release:
name: release
runs-on: ubuntu-latest
timeout-minutes: 30
Expand All @@ -24,16 +19,12 @@ jobs:
with:
token: ${{ secrets.DENOBOT_PAT }}

- uses: denoland/setup-deno@v2
with:
deno-version: canary
- uses: dsherret/rust-toolchain-file@v1

- name: Tag and release
env:
GITHUB_TOKEN: ${{ secrets.DENOBOT_PAT }}
GH_WORKFLOW_ACTOR: ${{ github.actor }}
run: |
git config user.email "denobot@users.noreply.github.com"
git config user.name "denobot"
deno run -A jsr:@deno/rust-automation@0.22.1/tasks/publish-release --${{github.event.inputs.releaseKind}} eszip
git tag v${{ github.event.inputs.version }}
git push origin v${{ github.event.inputs.version }}
Loading