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
20 changes: 2 additions & 18 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -214,21 +214,5 @@ jobs:
git push origin master
git push origin "v${{ steps.bump.outputs.version }}"

- name: Publish to crates.io
if: steps.check-release.outputs.skip != 'true' && steps.check-changes.outputs.has_changes == 'true'
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: cargo publish

- name: Setup Node.js for npm publish
if: steps.check-release.outputs.skip != 'true' && steps.check-changes.outputs.has_changes == 'true'
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'

- name: Publish to npm
if: steps.check-release.outputs.skip != 'true' && steps.check-changes.outputs.has_changes == 'true'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish --access public
# Publishing (crates.io, npm, binaries) is handled by release.yml
# which triggers on the tag push above
19 changes: 18 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,26 @@ jobs:
run: |
gh release upload "${{ needs.create-release.outputs.railway_version }}" "railway-${{ needs.create-release.outputs.railway_version }}-amd64.deb"

publish-crates:
name: Publish to crates.io
needs: ["create-release"]
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Publish to crates.io
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: cargo publish

publish-release:
name: Publish Release
needs: ["create-release", "build-release"]
needs: ["create-release", "build-release", "publish-crates"]
runs-on: ubuntu-latest

steps:
Expand Down