Skip to content

Commit

Permalink
Publish to GitHub Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenarakelyan committed Sep 21, 2023
1 parent ad260c8 commit 1fcb445
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 4 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish

on: [push]

jobs:
build:
name: Publish to GitHub Packages
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Read node version from .nvmrc
id: nvm
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"

- name: "Setup Node v${{ steps.nvm.outputs.NVMRC }}"
uses: actions/setup-node@v2
with:
node-version: "${{ steps.nvm.outputs.NVMRC }}"
cache: 'npm'

- name: Build
run: npm publish
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Test

on: [pull_request, push]
on: [push, pull_request]

jobs:
build:
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "accessible-autocomplete-multi",
"name": "@OfficeForProductSafetyAndStandards/accessible-autocomplete-multi",
"version": "2.0.4",
"main": "dist/accessible-autocomplete.min.js",
"style": "dist/accessible-autocomplete.min.css",
"description": "An autocomplete component, built to be accessible.",
"repository": "github:OfficeForProductSafetyAndStandards/accessible-autocomplete-multi",
"repository": "https://github.com/OfficeForProductSafetyAndStandards/accessible-autocomplete-multi.git",
"author": "Government Digital Service (https://www.gov.uk/government/organisations/government-digital-service) and Office for Product Safety & Standards (https://www.gov.uk/government/organisations/office-for-product-safety-and-standards)",
"license": "MIT",
"keywords": [
Expand Down Expand Up @@ -99,5 +99,7 @@
"standard": {
"parser": "@babel/eslint-parser"
},
"private": true
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
}

0 comments on commit 1fcb445

Please sign in to comment.