Skip to content

Commit

Permalink
ci: Add publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tillywoodfield committed May 14, 2024
1 parent d4cf256 commit 7bd3cc4
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish

on:
push:
tags:
- "*"

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20.x"
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Build project
run: npm run build
- name: Build storybook
run: npm run build:storybook
- name: Publish to NPM
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "iati-design-system",
"description": "A design system for IATI products.",
"version": "0.1.3",
"version": "0.1.4",
"repository": {
"type": "git",
"url": "git+https://github.com/IATI/design-system.git"
Expand Down

0 comments on commit 7bd3cc4

Please sign in to comment.