diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e69de29..36b7cb5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -0,0 +1,37 @@ +name: CD Build and Publish to NPM + +on: + release: + types: [published] + +jobs: + build: + runs-on: ubuntu-latest + permissions: + packages: write + contents: read + steps: + - uses: actions/checkout@v1 + + - name: Yarn Install + run: yarn + + - name: Lint + run: yarn lint + + - name: Jest Tests + run: yarn test:ci + + - name: Typescript build + run: yarn build + + - name: Set Version to Release Tag Name + run: | + yarn version --new-version ${{ github.event.release.tag_name }} --no-git-tag-version + + - uses: actions/setup-node@v3 + with: + registry-url: 'https://npm.pkg.github.com' + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/storybook.yml b/.github/workflows/storybook.yml index c1bba0c..8e9b7fe 100644 --- a/.github/workflows/storybook.yml +++ b/.github/workflows/storybook.yml @@ -1,23 +1,23 @@ -name: Build & Deploy Storybook +# name: Build & Deploy Storybook -on: - push: - branches: - - master +# on: +# push: +# branches: +# - master -jobs: - build-and-deploy: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@master - with: - persist-credentials: false +# jobs: +# build-and-deploy: +# runs-on: ubuntu-latest +# steps: +# - name: Checkout +# uses: actions/checkout@master +# with: +# persist-credentials: false - - name: Yarn Install - run: yarn install +# - name: Yarn Install +# run: yarn install - - name: Deploy Storybook - run: yarn storybook-to-ghpages --ci - env: - GH_TOKEN: ${{ secrets.ACCESS_TOKEN }} +# - name: Deploy Storybook +# run: yarn storybook-to-ghpages --ci +# env: +# GH_TOKEN: ${{ secrets.ACCESS_TOKEN }} diff --git a/src/styles/_core.scss b/src/styles/_core.scss index 20335ab..eacb187 100644 --- a/src/styles/_core.scss +++ b/src/styles/_core.scss @@ -7,7 +7,6 @@ // Generic @import '~nhsuk-frontend/packages/core/generic/box-sizing'; @import '~nhsuk-frontend/packages/core/generic/font-face'; -@import '~nhsuk-frontend/packages/core/generic/ie'; // Elements @import '~nhsuk-frontend/packages/core/elements/forms';