I am using GitHub actions to create a release build when a tag gets pushed. However, once it runs and I check the releases tab it hasn’t created the release correctly. Normally when you run ng build --prod it compiles all of your code into a few files reducing the file size massively. When I download the project from the releases tab it’s just normal like I would view it in a file explorer.
This is my workflow yaml file:
name: dev-release
on:
create:
tags:
- v*
jobs:
build:
name: setup environment
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Cache node modules
uses: actions/[email protected]
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Node ${{ matrix.node-version }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
- name: npm install
run: |
npm i
npm run build:ci
- name: Create Release
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.TOKEN }}
draft: true
artifactsinncipollo/release-action@v1so it publishes current dictionary.