Skip to content
This repository was archived by the owner on May 9, 2025. It is now read-only.

Commit a455c10

Browse files
committed
Add npm release workflow and update package details for v0.2.1
1 parent 0cbfe21 commit a455c10

File tree

4 files changed

+43
-10
lines changed

4 files changed

+43
-10
lines changed

.github/workflows/npm-release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Publish to npm
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: '>=20.17'
20+
registry-url: 'https://registry.npmjs.org/'
21+
22+
- name: Install dependencies
23+
run: npm install
24+
25+
- name: Publish to npm
26+
run: npm publish
27+
env:
28+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to
77
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
88

9+
## [v0.2.1] - 2024-12-19
10+
11+
### Changed
12+
- Made package `public` and available on npm
13+
914
## [v0.2.0] - 2024-11-25
1015

1116
### Added

package-lock.json

Lines changed: 8 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{
2-
"name": "rust-toolchain",
2+
"name": "@rs-workspace/-toolchain",
33
"description": "GitHub actions for installing rust toolchain",
4-
"version": "0.2.0",
4+
"version": "0.2.1",
55
"author": "Aditya Kumar",
6-
"private": true,
76
"homepage": "https://github.com/rs-workspace/rust-toolchain",
87
"repository": {
98
"type": "git",

0 commit comments

Comments
 (0)