Skip to content

Commit

Permalink
ci: update github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
YieldRay committed Mar 11, 2024
1 parent ff2c04b commit 6978f10
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 27 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on:
push:
branches:
- main
name: release-please
permissions: {}
jobs:
release-please:
permissions:
contents: write # to create release commit (google-github-actions/release-please-action)
pull-requests: write # to create release PR (google-github-actions/release-please-action)

runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v4
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20

- run: npm test
if: ${{ steps.release.outputs.release_created }}

- uses: JS-DevTools/npm-publish@v3
if: ${{ steps.release.outputs.release_created }}
with:
token: ${{secrets.NPM_TOKEN}}
access: public
provenance: true
26 changes: 0 additions & 26 deletions .github/workflows/release.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
node_modules/
*.tgz
pnpm-lock.yaml
package-lock.json
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# nrm-lite

[![npm](https://img.shields.io/npm/v/nrm-lite)](https://www.npmjs.com/package/nrm-lite)  [![install size](https://packagephobia.com/badge?p=nrm-lite)](https://packagephobia.com/result?p=nrm-lite)

Simple and lightweight replacement for nrm.
Like [dnrm](https://github.com/markthree/dnrm), but in pure Node.js

Expand All @@ -12,7 +14,7 @@ Like [dnrm](https://github.com/markthree/dnrm), but in pure Node.js
## Install

```sh
# install `nrml` command globally
# install the `nrml` command globally
npm install -g nrm-lite

nrml --help
Expand Down

0 comments on commit 6978f10

Please sign in to comment.