Skip to content

Commit

Permalink
release into npmjs as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Hoß committed Mar 30, 2022
1 parent f56974f commit dca4be2
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
tags:
- '*'
jobs:
deploy-crate:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -13,14 +13,19 @@ jobs:
with:
node-version: 16
cache: npm
- name: Install dependencies
run: npm install
- name: Compile grammar
run: npm run generate
registry-url: https://registry.npmjs.org
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install dependencies
run: npm install
- name: Generate grammar
run: npm run generate
- name: Publish to npmjs.com
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish to crates.io
uses: actions-rs/cargo@v1
with:
Expand Down

0 comments on commit dca4be2

Please sign in to comment.