Skip to content

Commit

Permalink
Add workflow to release to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
venikx committed Apr 28, 2021
1 parent 7f25398 commit 506d481
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 10 deletions.
17 changes: 17 additions & 0 deletions .github/workflow/publish-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Release to npm registry
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "14.x"
registry-url: "https://registry.npmjs.org/"
- run: npm install
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
14 changes: 4 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,18 @@
{
"name": "@equinor/lithology-patterns",
"version": "0.0.1",
"description": "Collection of Lithology Patterns used with Equinor's applications",
"description": "Collection of Lithology Patterns",
"main": "index.js",
"files": [
"assets"
],
"files": ["assets"],
"scripts": {
"patterns:format": "prettier --write assets/**/**.svg",
"patterns:optimize": "svgo -f ./figma -o ./assets/svg"
},
"repository": {
"type": "git",
"url": "git+https://github.com/equinor/lithology-patterns.git"
"url": "https://github.com/equinor/lithology-patterns.git"
},
"keywords": [
"equinor",
"lithology",
"svg"
],
"keywords": ["equinor", "lithology", "svg"],
"author": "Equinor",
"license": "MIT",
"bugs": {
Expand Down

0 comments on commit 506d481

Please sign in to comment.