Skip to content

Commit

Permalink
Merge pull request #413 from openedx/feanil/sem_rel
Browse files Browse the repository at this point in the history
build: Create npm-publish.yml
  • Loading branch information
Feanil Patel authored Jun 20, 2024
2 parents 1b47474 + 757c7e8 commit 9b40422
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release CI
on:
push:
branches:
- master
- main
jobs:
release:
name: Release
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Test
run: npm run test
- name: Build
run: npm run build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.OPENEDX_SEMANTIC_RELEASE_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.OPENEDX_SEMANTIC_RELEASE_NPM_TOKEN }}
run: npx semantic-release
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "edx-ui-toolkit",
"version": "1.5.5",
"version": "1.0.0-semantically-released",
"description": "A JavaScript toolkit for building edX user interfaces",
"license": "Apache-2.0",
"repository": {
Expand Down

0 comments on commit 9b40422

Please sign in to comment.